[Webkit-unassigned] [Bug 44372] Web Inspector: Any time JavaScript touches a window object reference that is cross-domain, the console reports an error.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 30 14:18:45 PDT 2011


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





--- Comment #3 from Sean Snider <ssnider at yahoo-inc.com>  2011-03-30 14:18:45 PST ---
Any update on this? Its quite annoying.

Basically what's happening is anytime you have JS code that "touches" a window reference from another domain, WebKit logs an "exception" in the console (not a warning), even though there is no real exception thrown to Javascript, and this is not illegal.

Often times you might have JS code that looks like this:

if (self !== top) { /* bust out of iframe */)

Or

top.postMessage("mymsg", "*");

Where the js code presented here is inside an iframe, that has an x-domain location.

This is illustrated in the test pages attached, but you'll need to have access to 2 different domains to test it (or use a host file and what not to acheive it).

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