Re: Throwing an error in an event listener

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 UTC