[Bug 14176] If the script is not same-origin, window.onerror should be invoked with arguments ("Script error.", "", 0)

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14176

--- Comment #3 from Simon Pieters <simonp@opera.com> 2011-10-20 21:38:22 UTC ---
So for <script src> scripts, if the script's URL's origin (after redirects) is
not the same as the script's origin, then in step 5 in
http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#creating-scripts
the "report the error" should use the arguments ("Script error.", "", 0).

Why invoke it at all? Firefox/Chrome/Opera have already implemented this. We
considered not invoking onerror at all, but it didn't solve anything and isn't
compatible (we found one site expecting onerror to be invoked for a
cross-origin <script src> with a compile error).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 20 October 2011 21:38:29 UTC