1. 06 Jan, 2012 1 commit
  2. 03 Jan, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Give embedders a chance to handle postMessage calls · 485d8c9a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73883
      
      Source/WebCore:
      
      To support cross-process postMessage calls in Chromium (bug 73337), we need to intercept
      postMessage calls to proxy windows. Originally we were just going to add a native event
      listener on the Chromium side, but that required more changes to WebKit and was a bit of
      a hack. See bug 73359 for a discuss about moving to this approach.
      
      Patch by Karl Koscher <supersat@chromium.org> on 2012-01-03
      Reviewed by Adam Barth.
      
      Test: platform/chromium/fast/events/intercept-postmessage.html
      
      * loader/FrameLoaderClient.h:
      (WebCore::FrameLoaderClient::willCheckAndDispatchPostMessage): new method to allow the
          embedder to intercept postMessage calls
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::postMessageTimerFired): add a call to
          FrameLoaderClient::willCheckAndDispatchPostMessage
      
      Source/WebKit/chromium:
      
      Patch by Karl Koscher <supersat@chromium.org> on 2012-01-03
      Reviewed by Adam Barth.
      
      * public/WebFrameClient.h:
      (WebKit::WebFrameClient::willCheckAndDispatchMessageEvent):
          interface to give the embedder a chance to handle this postMessage call
      * src/FrameLoaderClientImpl.cpp:
      (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent): Call
          willCheckAndDispatchMessageEvent on WebFrameClient
      * src/FrameLoaderClientImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      485d8c9a
  3. 28 Dec, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r103620. · addb4833
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/103620
      https://bugs.webkit.org/show_bug.cgi?id=75316
      
      Causes many crashes (Requested by abarth on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-12-28
      
      Source/WebCore:
      
      * loader/FrameLoaderClient.h:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::postMessageTimerFired):
      
      Source/WebKit/chromium:
      
      * public/WebDOMMessageEvent.h:
      * public/WebFrameClient.h:
      * src/FrameLoaderClientImpl.cpp:
      * src/FrameLoaderClientImpl.h:
      
      Tools:
      
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (LayoutTestController::reset):
      * DumpRenderTree/chromium/LayoutTestController.h:
      * DumpRenderTree/chromium/WebViewHost.cpp:
      * DumpRenderTree/chromium/WebViewHost.h:
      
      LayoutTests:
      
      * platform/chromium/fast/events/intercept-postmessage-expected.txt: Removed.
      * platform/chromium/fast/events/intercept-postmessage.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      addb4833
  4. 23 Dec, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Give embedders a chance to handle postMessage calls · 8515164e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73883
      
      Source/WebCore:
      
      To support cross-process postMessage calls in Chromium (bug 73337), we need to intercept
      postMessage calls to proxy windows. Originally we were just going to add a native event
      listener on the Chromium side, but that required more changes to WebKit and was a bit of
      a hack. See bug 73359 for a discuss about moving to this approach.
      
      Patch by Karl Koscher <supersat@chromium.org> on 2011-12-23
      Reviewed by Adam Barth.
      
      Test: platform/chromium/fast/events/intercept-postmessage.html
      
      * loader/FrameLoaderClient.h:
      (WebCore::FrameLoaderClient::willCheckAndDispatchPostMessage): new method to allow the
          embedder to intercept postMessage calls
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::postMessageTimerFired): add a call to
          FrameLoaderClient::willCheckAndDispatchPostMessage
      
      Source/WebKit/chromium:
      
      Patch by Karl Koscher <supersat@chromium.org> on 2011-12-23
      Reviewed by Adam Barth.
      
      * public/WebFrameClient.h:
      (WebKit::WebFrameClient::willCheckAndDispatchMessageEvent):
          interface to give the embedder a chance to handle this postMessage call
      * src/FrameLoaderClientImpl.cpp:
      (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent): Call
          willCheckAndDispatchMessageEvent on WebFrameClient
      * src/FrameLoaderClientImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8515164e