[Webkit-unassigned] [Bug 70836] [chromium] add swapOut method to WebFrame

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 31 13:46:54 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70836





--- Comment #8 from Karl Koscher <supersat at chromium.org>  2011-10-31 13:46:54 PST ---
(In reply to comment #7)
> Can you describe how that code looks?  It might help inform us about the best API entry points.

I got something nearly up and running by doing the following:

1. Virtualize postMessage in the DOMWindow class.
2. Create a ProxyDOMWindow class in WebKit/chromium/src that extends DOMWindow. The class contains an identifier to reach the actual frame the proxy is for.
3. Extend swapOut to take the new frame identifier, create a ProxyDOMWindow with it, and set it to be the frame's window. 
4. Add a method to WebFrameClient.h to send a postMessage to a remote frame.
5. Override postMessage in ProxyDOMWindow to call the new method in WebFrameClient.
6. Add plumbing in Chromium to send the postMessage to the right process/frame.

The missing piece was to actually deliver the postMessage event. There were also some object lifetime issues to work out...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list