[Webkit-unassigned] [Bug 17099] Add Mozilla tests for postMessage, fix bugs they reveal

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 9 18:52:42 PDT 2008


------- Comment #9 from collinj-webkit at collinjackson.com  2008-05-09 18:52 PDT -------
(In reply to comment #6)
> - you're using the value of document.domain for determining origin -- you
>   should use the actual location

I was not able to reproduce this issue on the latest nightly. I typed this
sequence of commands into the JavaScript console:

> document.domain = "webkit.org";
> addEventListener("message", function(e) { alert(e.origin); }, true);
> postMessage("hi", "*");

An alert pops up that says "https://bugs.webkit.org/" (not
"https://webkit.org", which would be wrong)

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

More information about the webkit-unassigned mailing list