WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Jan 2008 00:18:16 +0000 (00:18 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Jan 2008 00:18:16 +0000 (00:18 +0000)
commitdec432b7a14bb715d0984a44fd560f12c207332f
tree450e74033446fef1ec9d27edfab55bb076707900
parent7565b5eb8255dd2b36943cebc1cfdbbd6d4c24da
WebCore:

        Reviewed by Darin.

        Patch for http://bugs.webkit.org/show_bug.cgi?id=14994
        Support for MessageEvent and cross-domain messaging

        Test: http/tests/messaging/cross-domain-message-send.html

        * DerivedSources.make:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::customGetOwnPropertySlot): Allow cross-domain access to the
        postMessage function.
        (WebCore::JSDOMWindow::postMessage):
        * bindings/js/JSEventCustom.cpp:
        (WebCore::toJS):
        * dom/Event.cpp:
        (WebCore::Event::isMessageEvent):
        * dom/Event.h:
        * dom/EventNames.h: New event name
        * dom/MessageEvent.cpp: Added.
        * dom/MessageEvent.h: Added.
        * dom/MessageEvent.idl: Added.
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::postMessage): Added.
        * page/DOMWindow.h:
        * page/DOMWindow.idl:

LayoutTests:

        Reviewed by Darin.

        Test for http://bugs.webkit.org/show_bug.cgi?id=14994
        Support for MessageEvent and cross-domain messaging

        * fast/dom/Window/window-properties-expected.txt:
        * http/tests/messaging: Added.
        * http/tests/messaging/cross-domain-message-send-expected.txt: Added.
        * http/tests/messaging/cross-domain-message-send.html: Added.
        * http/tests/messaging/resources: Added.
        * http/tests/messaging/resources/cross-domain-message-receive.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/http/tests/messaging/cross-domain-message-send-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/messaging/cross-domain-message-send.html [new file with mode: 0644]
LayoutTests/http/tests/messaging/resources/cross-domain-message-receive.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/DerivedSources.make
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/WebCoreSources.bkl
WebCore/bindings/js/JSDOMWindowCustom.cpp
WebCore/bindings/js/JSEventCustom.cpp
WebCore/dom/Event.cpp
WebCore/dom/Event.h
WebCore/dom/EventNames.h
WebCore/dom/MessageEvent.cpp [new file with mode: 0644]
WebCore/dom/MessageEvent.h [new file with mode: 0644]
WebCore/dom/MessageEvent.idl [new file with mode: 0644]
WebCore/page/DOMWindow.cpp
WebCore/page/DOMWindow.h
WebCore/page/DOMWindow.idl