W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2011

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 20 Oct 2011 21:38:23 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RH0Jj-0001nx-Di@jessica.w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:06 UTC