W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: Error Object, Stack, and Parking Garages

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 12 Aug 2011 20:14:42 -0700
Message-ID: <CABZUbM2RXvwhQo_e3AFLmjuO4WVTeY0SW_kM=tPxLd67ZcNVgg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-script-coord@w3.org
On 8/11/11, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 8/12/11 12:12 AM, Garrett Smith wrote:
>> When a script/DOM error occurs, the callback fires. The callback can
>> access the callstack, message, and error from the error event.
> Subject to security restrictions when cross-origin scripts are involved,
> just like the onerror handler is, yes?

Such that given a site on evil.com, you have <script src="//bofa.com"></script>?

If so, would it be safe to generate a content-type error: "script
error from bofa.com. Wrong content-type." - ?
Received on Saturday, 13 August 2011 03:15:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC