Skip to content
  • weinig@apple.com's avatar
    WebCore: · a184230c
    weinig@apple.com authored
    2008-05-06  Adam Barth  <abarth-webkit@adambarth.com>
    
            Reviewed by Sam Weinig.
    
            https://bugs.webkit.org/show_bug.cgi?id=18725
            Implement asynchronous postMessage.
            MessageEvent no longer bubbles as per r1237 in the HTML 5 working draft.
    
            Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
    
            Test: http/tests/security/postMessage/delivery-order.html
    
            * dom/MessageEvent.cpp:
            (WebCore::MessageEvent::MessageEvent):
            * page/DOMWindow.cpp:
            (WebCore::PostMessageTimer::PostMessageTimer):
            (WebCore::PostMessageTimer::event):
            (WebCore::PostMessageTimer::targetOrigin):
            (WebCore::PostMessageTimer::fired):
            (WebCore::DOMWindow::postMessage):
            (WebCore::DOMWindow::postMessageTimerFired):
            * page/DOMWindow.h:
            * page/DOMWindow.idl:
    
    LayoutTests:
    
    2008-05-06  Adam Barth  <abarth-webkit@adambarth.com>
    
            Reviewed by Sam Weinig.
    
            https://bugs.webkit.org/show_bug.cgi?id=18725
            Update tests for asynchronous postMessage.
    
            Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
    
            * http/tests/messaging/cross-domain-message-send.html:
            * http/tests/messaging/resources/cross-domain-message-receive.html:
            * http/tests/security/cross-frame-access-delete.html:
            * http/tests/security/cross-frame-access-history-put.html:
            * http/tests/security/cross-frame-access-location-put.html:
            * http/tests/security/postMessage/delivery-order-expected.txt: Added.
            * http/tests/security/postMessage/delivery-order.html: Added.
            * http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt:
            * http/tests/security/postMessage/invalid-origin-throws-exception.html:
            * http/tests/security/postMessage/origin-unaffected-by-base-tag-expected.txt:
            * http/tests/security/postMessage/origin-unaffected-by-base-tag.html:
            * http/tests/security/postMessage/origin-unaffected-by-document-domain-expected.txt:
            * http/tests/security/postMessage/origin-unaffected-by-document-domain.html:
            * http/tests/security/postMessage/resources/javascript-post-message-sender.html:
            * http/tests/security/postMessage/resources/post-message-listener.html:
            * http/tests/security/postMessage/resources/recv.js: Added.
            * http/tests/security/postMessage/target-origin-expected.txt:
            * http/tests/security/postMessage/target-origin.html:
            * http/tests/security/resources/cross-frame-iframe-for-delete-test.html:
            * http/tests/security/resources/cross-frame-iframe-for-history-put-test.html:
            * http/tests/security/resources/cross-frame-iframe-for-location-put-test.html:
            * http/tests/security/resources/xss-eval3.html:
            * http/tests/security/xss-eval.html:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a184230c