Skip to content
  • aa@chromium.org's avatar
    Update isolated worlds under v8 to support world reuse. · 0ad18647
    aa@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=30145
    
    Patch by Aaron Boodman <aa@chromium.org> on 2009-10-07
    Reviewed by Adam Barth.
    
    WebCore: 
    
    * bindings/v8/ScriptController.cpp:
    Replace evaluateInNewIsolatedWorld() withe evaluateInIsolatedWorld(id).
    (WebCore::ScriptController::evaluateInIsolatedWorld):
    * bindings/v8/ScriptController.h: Ditto.
    * bindings/v8/V8Proxy.cpp: Ditto.
    (WebCore::V8Proxy::~V8Proxy): Dittio.
    (WebCore::V8Proxy::evaluateInIsolatedWorld): Ditto.
    * bindings/v8/V8Proxy.h: Ditto.
    * bindings/v8/V8IsolatedWorld.cpp:
    Add support for controlling lifetime of a world, rather than relying on GC.
    (WebCore::V8IsolatedWorld::contextWeakReferenceCallback): Ditto.
    (WebCore::V8IsolatedWorld::V8IsolatedWorld): Ditto.
    (WebCore::V8IsolatedWorld::destroy): Ditto.
    * bindings/v8/V8IsolatedWorld.h: Ditto.
    
    LayoutTests: 
    
    * http/tests/security/isolatedWorld/iframe.html: Added.
    * http/tests/security/isolatedWorld/world-reuse-expected.txt: Added.
    * http/tests/security/isolatedWorld/world-reuse.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0ad18647