Closed
Bug 445280
Opened 16 years ago
Closed 16 years ago
Firebug causes the wrong filename (e.g. nsHelperAppDlg.js) and line number to be reported in the Error Console
Categories
(Toolkit Graveyard :: Error Console, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: johnjbarton, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: testcase)
This was originally reported as a Firebug error: http://code.google.com/p/fbug/issues/detail?id=810 but its too weird so I want to blame someone else... The test case in comment 6 of the bug report: http://code.google.com/p/fbug/issues/detail?id=810#c6 http://fbug.googlecode.com/issues/attachment?aid=3046592258240534119&name=testcase.zip has two files, both with syntax errors like alert("gaga One is reported correctly. The other one is reported in the Firefox Error Console like this: Error: missing ) after argument list Source File: file:///C:/Program%20Files/Mozilla%20Firefox%203/components/nsHelperAppDlg.js Line: 621, Column: 12 Source Code: alert('gaga'; This message does not seem to come thru jsd's onError handler, I don't see it in Firebug at all.
Comment 1•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.2pre) Gecko/2008071105 Firefox/3.0 *without Firebug installed* I see this: Error: missing ) after argument list Source file: file:///C:/T1/t1/ga.js Line: 1, Column: 12 Source code: alert('gaga'; (with the pointer at the semicolon ";")
Summary: nsHelperAppDlg.js error console hijacking → Firebug causes the wrong filename (e.g. nsHelperAppDlg.js) and line number to be reported in the Error Console
Reporter | ||
Comment 2•16 years ago
|
||
Do you see two see two error messages? Is the other one correct? How can an extension alter the errors reported by Error Console?
Reporter | ||
Comment 3•16 years ago
|
||
(In reply to comment #2) > How can an extension alter the errors reported by Error Console? > Perhaps by using nsIScriptError.init(), http://www.xulplanet.com/references/xpcomref/ifaces/nsIScriptError.html Perhaps this method operates on the error object so if it gets called before the Error Console renders the error, then the new values are shown.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
Assignee | ||
Updated•8 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•