Last Comment Bug 511562 - errors thrown event listeners never reach the error console
: errors thrown event listeners never reach the error console
Status: RESOLVED INCOMPLETE
[CLOSEME 2011-1-1]
:
Product: Firefox
Classification: Client Software
Component: General (show other bugs)
: unspecified
: x86 Mac OS X
: -- major (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-19 18:03 PDT by Jared Grippe
Modified: 2011-01-01 07:50 PST (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Jared Grippe 2009-08-19 18:03:18 PDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9
Build Identifier: Firefox 3.5.2

When the following code is run in Firefox < 3.5 the error shows up in the console. when run in Firefox >3.5 the error never bubbles up. 

element = document.createElement('div');
var responder = function(){
  console.log('responder run');
  throw new Error('i never reach the console in FF3.5');
}
element.addEventListener("dataavailable", responder, false);

event = document.createEvent('HTMLEvents');
event.initEvent('dataavailable', true, true);
element.dispatchEvent(event);

Reproducible: Always

Steps to Reproduce:
element = document.createElement('div');
var responder = function(){
  console.log('responder run');
  throw new Error('i never reach the console in FF3.5');
}
element.addEventListener("dataavailable", responder, false);

event = document.createEvent('HTMLEvents');
event.initEvent('dataavailable', true, true);
element.dispatchEvent(event);
Actual Results:  
console contains "responder run" but no error

Expected Results:  
console to contain "responder run" and [Exception... "'Error: i never reach the console in FF3.5' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: http://local.rupture.com/javascripts/application.js :: fire :: line 5155" data: no]
Comment 1 Tyler Downer [:Tyler] 2010-12-03 22:56:15 PST
Reporter, are you still seeing this issue with Firefox 3.6.12 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Also, please consider using the most recent Firefox 4 beta build, your bug may be resolved there.
Comment 2 Tyler Downer [:Tyler] 2011-01-01 07:50:48 PST
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.

Note You need to log in before you can comment on or make changes to this bug.