Errors from content page are logged twice in the Multiprocess Browser Toolbox
Categories
(DevTools :: Console, defect, P1)
Tracking
(Fission Milestone:M6c, firefox79 fixed)
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(2 files)
Steps to reproduce
- Go to https://nchevobbe.github.io/demo/console-test-app.html
- Open the multiprocess browser toolbox
- In the content page, click on the "Exception" button
Expected results
An error is displayed in the browser toolbox
Actual results
2 errors are displayed in the browser toolbox.
After some investigation, I was able to see that those messages are coming from different targets.
The first one is from the content process target, and the second one from the parent process one.
I think the second message is coming from xpcom/base/nsConsoleService.cpp#162, where nsIScriptError from the content processes are forwarded to the parent process.
We should return early in MaybeForwardScriptError
if devtools.browsertoolbox.fission
is set to true
.
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c)
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
What's said in comment 0 isn't relevant. The duplication happens because we also log from dom/ipc/ContentChild.cpp#455-538.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Backed out for multiple console related failures.
backout: https://hg.mozilla.org/integration/autoland/rev/46029e7b4eadb143ba7276929aec053451c2cfc4
push:
Assignee | ||
Comment 6•5 years ago
|
||
ah, this wasn't caught by my TRY push, I'll investigate
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
We were getting duplicated nsIScriptError in the Browser Toolbox console and the Browser Console
when the multiprocess pref is enabled, because error from content processes are forwarded to
the main process.
The previous patch of this queue added a isForwardedFromContentProcess flag to nsIScriptError,
that we use in this patch to not handle forwarded messages in multiprocess browser console
and browser toolbox console.
Depends on D76792
Comment 9•5 years ago
|
||
Backed out for dt failures on browser_webconsole_stubs_css_message.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/c835da226e6d4fe1da1343990df41d024b59d3ae
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305194233&repo=autoland&lineNumber=11077
Comment 10•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fd256d1ad341
https://hg.mozilla.org/mozilla-central/rev/ad832014f2d2
Description
•