LayoutTests:

        Reviewed by Geoff Garen.

        Test for <rdar://problem/5333957>

        * http/tests/security/cross-frame-access-protocol.html: Fix a few typos.
        * http/tests/security/cross-frame-access-selection-expected.txt: Added.
        * http/tests/security/cross-frame-access-selection.html: Added.
        * http/tests/security/resources/foreign-domain-iframe-for-selection-test.html: Added.

WebCore:

        Reviewed by Geoff Garen.

        Fix for <rdar://problem/5333957>
                http://bugs.webkit.org/show_bug.cgi?id=14610

        Original patch by Feng Qian.

        - Clear the selection object when disconnecting a frame.

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

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::clear):
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::disconnectFrame):
        (WebCore::DOMWindow::clear):
        * page/DOMWindow.h:
        * page/Frame.cpp:
        (WebCore::Frame::clearScriptProxy):
        (WebCore::Frame::clearDOMWindow):
        * page/Frame.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
11 files changed