W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2012

Re: Throwing an error in an event listener

From: David Bruant <bruant.d@gmail.com>
Date: Sun, 28 Oct 2012 10:31:35 +0100
Message-ID: <508CFB77.5050300@gmail.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-dom@w3.org
Le 27/10/2012 18:52, Boris Zbarsky a écrit :
> On 10/27/12 11:04 AM, David Bruant wrote:
>> Ms2ger directed me to
>> https://www.w3.org/Bugs/Public/show_bug.cgi?id=17713
>> Second issue is what is expected from window.onerror. In the bug, Ms2ger
>> said:
>> " Gecko doesn't trigger window.onerror; Chrome, Opera-next and IE10 do."
>
> It depends.
I've noticed that afterward indeed.

> Gecko does have a bug in terms of calling window.onerror (and
> reporting to its own error console, since that uses the same
> mechanism) when a listener added via addEventListener is triggered due
> to an event that's dispatched while page script is running (e.g. if
> you do a manual dispatchEvent()).  But it's just a bug that needs fixing.
For those who want to follow along:
https://bugzilla.mozilla.org/show_bug.cgi?id=503244

David
Received on Sunday, 28 October 2012 09:32:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 28 October 2012 09:32:06 GMT