Replace Cu.reportError calls in dom/console/ConsoleAPIStorage.jsm
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
I originally tried doing this in bug 1806500, but dom/console/tests/test_bug659625.html
failed on android.
Tracking it down, I found that GeckoViewConsole.jsm
is not properly handling console messages with no arguments, e.g. console.trace()
. As a result, it throws, which ConsoleAPIStorage catches.
With the new version, it logs it to the console (rather than via Cu.reportError), which the test picks up as an unexpected message, and hence the test fails.
Assignee | ||
Comment 1•2 years ago
|
||
This handles a call to console.trace() with no arguments, which is what happens in dom/console/tests/test_bug659625.html.
The failure is currently hidden from the test because it only checks the console log, not the output of Cu.reportError.
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D165203
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a8b626abdc06
https://hg.mozilla.org/mozilla-central/rev/0fe58dc368a7
Description
•