Console should use the new API for tracking promises that are rejected and not handled
Categories
(DevTools :: Console, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: fitzgen, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [polish-backlog][difficulty=medium])
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Updated•9 years ago
|
Comment 5•9 years ago
|
||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
Here is some links to bugs that are relevant when discussing about stacks of error messages.
A significant work has been done in bug 814497 in order to ensure passing stacks up to the console actor.
This led to interesting-to-be-aware-of leak in bug 1254230.
And the thing is that from the day we landed this work, we knew that stacks are missing for every message that is not bound to a window/document. So we expected to miss stacks for everything coming from a JSM, XPCOM, Sandbox, ...
Bug 1237904 has been filed to track that, but has been closed by mistake at the end of fxos.
jryans wanted to finally tackle that but never got to it.
The last time we discussed about all that was in bug 1452798 as sentry was missing most error traces... Almost everything but browser.xul error messages I imagine.
Updated•6 years ago
|
Updated•5 years ago
|
Comment 7•5 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #5)
I found that Promise unhandled reports are still missing stacks.
That's because the old reprecated way to report it from C++ here:
http://mxr.mozilla.org/mozilla-central/source/dom/promise/Promise.cpp#1187
uses AsyncErrorReporter, which doesn't support passing stack.
https://phabricator.services.mozilla.com/D44608 proposes adding stack support to AsyncErrorReporter.
Comment 8•5 years ago
|
||
Switching to enhancements as I noticed this when creating demos. Not having stacks for errors makes them really confusing and not helpful for devs: https://firefox-devtools-unhanded-rejection-promise.glitch.me/
Updated•2 years ago
|
Description
•