WebCore:
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Apr 2009 00:56:25 +0000 (00:56 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Apr 2009 00:56:25 +0000 (00:56 +0000)
commit123970a821c8b4578aa31fa734506ca95e03a1c2
tree1a38e21c1621ba5d77879a51dec027a497215a96
parentc4f24130b7079afd5a03ad9eedf05b20331d338a
WebCore:

2009-04-03  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        <rdar://problem/6330929>
        https://bugs.webkit.org/show_bug.cgi?id=21456

        Don't update the document pointer for all inactive windows on navigations.
        This change causes us to differ slightly from Firefox when accessing the
        document from within a closure tied to a navigated context, but as all
        browsers differ on this edge case, I don't foresee compatibility issues.

        Test: http/tests/security/cross-frame-access-document-direct.html

        * bindings/js/JSDOMWindowBase.cpp:
        (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
        * bindings/js/ScriptController.cpp:
        (WebCore::ScriptController::clearWindowShell):
        (WebCore::ScriptController::initScript):
        (WebCore::ScriptController::updateDocument):
        * bindings/js/ScriptController.h:

LayoutTests:

2009-04-03  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Update tests for <rdar://problem/6330929>
        https://bugs.webkit.org/show_bug.cgi?id=21456

        * dom/xhtml/level2/html/HTMLFormElement10-expected.txt:
        * fast/dom/Window/dom-access-from-closure-iframe-expected.txt:
        * fast/dom/Window/dom-access-from-closure-window-expected.txt:
        * http/tests/security/cross-frame-access-document-direct-expected.txt: Added.
        * http/tests/security/cross-frame-access-document-direct.html: Added.
        * http/tests/security/resources/cross-frame-iframe-for-document-direct-test-victim.html: Added.
        * http/tests/security/resources/cross-frame-iframe-for-document-direct-test.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/xhtml/level2/html/HTMLFormElement10-expected.txt
LayoutTests/fast/dom/Window/dom-access-from-closure-iframe-expected.txt
LayoutTests/fast/dom/Window/dom-access-from-closure-window-expected.txt
LayoutTests/http/tests/security/cross-frame-access-document-direct-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/cross-frame-access-document-direct.html [new file with mode: 0644]
LayoutTests/http/tests/security/resources/cross-frame-iframe-for-document-direct-test-victim.html [new file with mode: 0644]
LayoutTests/http/tests/security/resources/cross-frame-iframe-for-document-direct-test.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/JSDOMWindowBase.cpp
WebCore/bindings/js/ScriptController.cpp
WebCore/bindings/js/ScriptController.h