Closed Bug 418339 Opened 16 years ago Closed 16 years ago

Errors on Events are not informative

Categories

(Toolkit Graveyard :: Error Console, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 11240

People

(Reporter: johnjbarton, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

The attached html file has a script:
var d = document.createElement("div");
d.setAttribute("onclick", "throw 1");
d.innerHTML = "ClickMe";
document.body.appendChild(d);
--
when the div is clicked the error message is:
---
uncaught exception: 1

Line 0
--
There is no information that helps developers find the error or even a hint that the error happened in an event.

Reproducible: Always

Steps to Reproduce:
1. FF2.0.0.12
2.
3.



The kinds of information that would help developers and should be easily available include:
  -- the body of the event handler: function onclick(event) {, throw 1;, }
  -- the call stack at the point of error
  -- the event that was being processed when the exception occurred.
  -- the element whose attribute contained the event handler.
The call stack is the most important as it would allow the other stuff to be accessed.
Attached file testcase
OS: Windows XP → All
Hardware: PC → All
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: