Changeset 51912 in webkit


Ignore:
Timestamp:
Dec 9, 2009 12:14:08 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-09 Søren Gjesse <sgjesse@chromium.org>

Reviewed by Pavel Feldman.

[V8] Isolated world reuse failure
https://bugs.webkit.org/show_bug.cgi?id=32306

Fixed bug introduced in r51407: (http://trac.webkit.org/changeset/51407) which caused layout test
LayoutTests/http/tests/security/isolatedWorld/world-reuse.html to fail.

  • bindings/v8/V8Proxy.cpp: (WebCore::V8Proxy::setInjectedScriptContextDebugId): (WebCore::V8Proxy::contextDebugId):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51910 r51912  
     12009-12-09  Søren Gjesse  <sgjesse@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        [V8] Isolated world reuse failure
     6        https://bugs.webkit.org/show_bug.cgi?id=32306
     7
     8        Fixed bug introduced in r51407: (http://trac.webkit.org/changeset/51407) which caused layout test
     9        LayoutTests/http/tests/security/isolatedWorld/world-reuse.html to fail.
     10
     11        * bindings/v8/V8Proxy.cpp:
     12        (WebCore::V8Proxy::setInjectedScriptContextDebugId):
     13        (WebCore::V8Proxy::contextDebugId):
     14
    1152009-12-09  Patrick Scott  <phanna@email.unc.edu>
    216
  • trunk/WebCore/bindings/v8/V8Proxy.cpp

    r51459 r51912  
    390390        return false;
    391391    int debugId = contextDebugId(m_context);
     392
     393    char buffer[32];
    392394    if (debugId == -1)
    393         return false;
    394 
    395     char buffer[32];
    396     snprintf(buffer, sizeof(buffer), "injected,%d", debugId);
     395        snprintf(buffer, sizeof(buffer), "injected");
     396    else
     397        snprintf(buffer, sizeof(buffer), "injected,%d", debugId);
    397398    targetContext->SetData(v8::String::New(buffer));
    398399
     
    13791380    v8::String::AsciiValue ascii(context->GetData());
    13801381    char* comma = strnstr(*ascii, ",", ascii.length());
     1382    if (!comma)
     1383        return -1;
    13811384    return atoi(comma + 1);
    13821385}
Note: See TracChangeset for help on using the changeset viewer.