Skip to content
  • abarth@webkit.org's avatar
    2009-09-16 Adam Barth <abarth@webkit.org> · bec44e31
    abarth@webkit.org authored
            Reviewed by Dimitri Glazkov.
    
            [V8] Teach ScheduledAction::execute about isolated worlds
            https://bugs.webkit.org/show_bug.cgi?id=27703
    
            We now save a handle to the original context.  We use that handle to
            call the timeout in the right context / world.
    
            Tests: http/tests/security/isolatedWorld/window-setTimeout-function.html
                   http/tests/security/isolatedWorld/window-setTimeout-string.html
    
            * bindings/v8/ScheduledAction.cpp:
            (WebCore::ScheduledAction::ScheduledAction):
            (WebCore::ScheduledAction::execute):
            * bindings/v8/ScheduledAction.h:
            (WebCore::ScheduledAction::ScheduledAction):
            * bindings/v8/custom/V8DOMWindowCustom.cpp:
            (WebCore::V8Custom::WindowSetTimeoutImpl):
            * bindings/v8/custom/V8WorkerContextCustom.cpp:
            (WebCore::SetTimeoutOrInterval):
    2009-09-16  Adam Barth  <abarth@webkit.org>
    
            Reviewed by Dimitri Glazkov.
    
            [V8] Teach ScheduledAction::execute about isolated worlds
            https://bugs.webkit.org/show_bug.cgi?id=27703
    
            Add test coverage for the interaction between setTimeout and isolated
            worlds.
    
            * http/tests/security/isolatedWorld/window-setTimeout-function-expected.txt: Added.
            * http/tests/security/isolatedWorld/window-setTimeout-function.html: Added.
            * http/tests/security/isolatedWorld/window-setTimeout-string-expected.txt: Added.
            * http/tests/security/isolatedWorld/window-setTimeout-string.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bec44e31