2009-09-16 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Sep 2009 06:25:14 +0000 (06:25 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Sep 2009 06:25:14 +0000 (06:25 +0000)
commita8066447882f1e0cbe5138a41d2245b7daf61baf
treeabc358cbea82776151cb02052625e5be7f6b26e2
parent76896d507cb65923301fb511c52adbdffbcbb4a9
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

        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: https://svn.webkit.org/repository/webkit/trunk@48455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/security/isolatedWorld/window-setTimeout-function-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/isolatedWorld/window-setTimeout-function.html [new file with mode: 0644]
LayoutTests/http/tests/security/isolatedWorld/window-setTimeout-string-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/isolatedWorld/window-setTimeout-string.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/v8/ScheduledAction.cpp
WebCore/bindings/v8/ScheduledAction.h
WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp