An error inside an event handler is reported too late
Categories
(DevTools :: Console, defect, P2)
Tracking
(firefox106 verified)
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | verified |
People
(Reporter: dan.abramov, Assigned: nchevobbe)
Details
Attachments
(5 files, 1 obsolete file)
|
265 bytes,
text/html
|
Details | |
|
Bug 1483662 - Add microSecondTimeStamp to nsConsoleMessage, nsScriptError and ConsoleEvent. r=edgar.
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Reporter | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 7•7 years ago
|
||
| Assignee | ||
Comment 8•7 years ago
|
||
| Assignee | ||
Comment 9•7 years ago
|
||
| Assignee | ||
Comment 10•7 years ago
|
||
Comment 11•6 years ago
|
||
Is this patch still needed? I don't see it in my review queue. (sorry for the delay)
| Assignee | ||
Comment 12•6 years ago
|
||
No worries. Yes, it would be nice to fix this (basically, the test from https://phabricator.services.mozilla.com/D7085 should pass, if you try it now it fails).
Updated•3 years ago
|
| Assignee | ||
Comment 13•3 years ago
|
||
Rebased the test from attached patch. We don't have different order between cached and live messages anymore, but we still don't have them in the same order as in Chrome.
We'll take a look in the coming month
| Assignee | ||
Comment 14•3 years ago
|
||
Those will be consumed by DevTools webconsole so we can order messages
emitted within the same millisecond more precisely (see next patch in queue)
Updated•3 years ago
|
| Assignee | ||
Comment 15•3 years ago
|
||
We can get a higher precision timestamp from microSecondTimeStamp, which will be consumed
in the console client to re-order messages.
This fixes an issue where different type of resources (console-messages and error-messages)
emitted during the same timestamp would not appear in the order they should be in.
A test is added to make sure the fix is effective.
Depends on D155545
| Assignee | ||
Comment 16•3 years ago
|
||
The function returns the current a fractional number
representing the current time (in milliseconds from the Epoch).
This replicates the JSShell dateNow function.
This could be useful in JS land so we can get a more
precise timestamp than Date.now.
For example, it will be used in DevTools code, for the console,
so we can more precisely compare evaluation results
with consoleAPI messages that might have been emitted
as a result of the evaluation.
Depends on D155546
| Assignee | ||
Comment 17•3 years ago
|
||
Cu.dateNow() has a higher precision than Date.now(), which is useful for ordering
of messages in the console output.
Depends on D155547
Updated•3 years ago
|
Updated•3 years ago
|
Comment 18•3 years ago
|
||
Comment 19•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/75f0dd69353d
https://hg.mozilla.org/mozilla-central/rev/8c9df22f12b0
https://hg.mozilla.org/mozilla-central/rev/9901cd20bbc5
https://hg.mozilla.org/mozilla-central/rev/087477ea609d
Updated•3 years ago
|
Comment 20•3 years ago
|
||
Reproduced this issue with an affected build 63.0a1 (20180815100249) on Win 10.
Verified as fixed on Firefox 106.0 (20221010110315) on Win 10, Ubuntu 21.04 and macOS 10.13.
Updated•2 years ago
|
Description
•