[Webkit-unassigned] [Bug 77580] Support targetOrigin = "/" in postMessage for sending messages to same origin as source document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 1 17:00:57 PST 2012


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





--- Comment #7 from Pablo Flouret <pablof at motorola.com>  2012-02-01 17:00:57 PST ---
(In reply to comment #6)
> (From update of attachment 125031 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=125031&action=review
> 
> Thanks!
> 
> > Source/WebCore/page/DOMWindow.cpp:836
> > +        if (!sourceDocument)
> > +            return;
> 
> I wonder if we shouldn't just return right away when !sourceDocument.  I can understand why you've chosen this path though.

Yeah, wasn't sure if the syntax error should be reported regardless, but when in doubt i guess it's always better to keep the existing behavior :P.

Under what circumstances can there be no document there? (workers?)

-- 
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