Closed
Bug 853188
Opened 11 years ago
Closed 11 years ago
We don't report line numbers for async errors caught in window.onerror
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(firefox23 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
RESOLVED
FIXED
mozilla23
People
(Reporter: jgriffin, Assigned: jgriffin)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mdas
:
review+
|
Details | Diff | Splinter Review |
We catch errors reported to window.onerror during async execute calls, but don't report the line number: 510 originalOnError = curWindow.onerror; 511 curWindow.onerror = function errHandler(errMsg, url, line) { 512 sandbox.asyncComplete(errMsg, 17, null, asyncTestCommandId); 513 curWindow.onerror = originalOnError; 514 }; We should be reporting as much of the stack trace as we can get.
Assignee | ||
Updated•11 years ago
|
Blocks: b2g-testing
Assignee | ||
Comment 1•11 years ago
|
||
This seems like the right thing to do, although as I mentioned, I couldn't actually write a test for this.
Attachment #731971 -
Flags: review?(mdas)
Comment 2•11 years ago
|
||
Comment on attachment 731971 [details] [diff] [review] Use the url and line number passed to window.onerror, Review of attachment 731971 [details] [diff] [review]: ----------------------------------------------------------------- Hmm, I couldn't figure one out either, but if there is a way to catch it, then this is what we should return.
Attachment #731971 -
Flags: review?(mdas) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d77d2aaabf9
Target Milestone: --- → mozilla23
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1d77d2aaabf9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 5•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/8565e79f6e54
status-b2g18:
--- → fixed
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Malini Das [:mdas] from comment #5) > https://hg.mozilla.org/releases/mozilla-b2g18/rev/8565e79f6e54 thanks, you beat me to it!
Assignee | ||
Updated•11 years ago
|
status-b2g18-v1.0.0:
--- → affected
status-b2g18-v1.0.1:
--- → affected
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/b8359be6a074
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•