Add a 'chrome'/'content' filtering for the Browser Console
Categories
(DevTools :: Console, enhancement, P2)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: bgrins, Assigned: nchevobbe)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 1 obsolete file)
Updated•9 years ago
|
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Reporter | ||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
Reporter | ||
Comment 8•7 years ago
|
||
Reporter | ||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Reporter | ||
Comment 11•7 years ago
|
||
Comment 13•7 years ago
|
||
Reporter | ||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Reporter | ||
Comment 16•7 years ago
|
||
Reporter | ||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 20•6 years ago
|
||
We are missing the flag for network messages, but Honza pointed out https://searchfox.org/mozilla-central/rev/44a212460990ffffecf50a8e972d3cbde2e7216b/devtools/server/actors/network-monitor/network-observer.js#53 where we already filter out Chrome logs. I guess we could use that to identify Content originated network calls as well.
Assignee | ||
Comment 21•6 years ago
|
||
Also, this bug is for the Browser Console, but should we expand this logic to the Browser Toolbox?
Reporter | ||
Comment 22•6 years ago
|
||
(In reply to Nicolas Chevobbe from comment #21)
Also, this bug is for the Browser Console, but should we expand this logic to the Browser Toolbox?
IMO the two main things we get out of this are (1) less noise in the UI when you really only care about chrome and (2) better performance so that opening the console doesn't slow down the rest of the UI. Both (1) and (2) are important to the Browser Console and primarily (1) is important to the Browser Toolbox. I think it'd make sense to add to the Browser Toolbox if it's not too much work, but I'd be happy to punt that into another bug as well.
Assignee | ||
Comment 23•6 years ago
|
||
This property was already in console api message packet,
and this patch also adds it to pageError packets (retrieving
it from nsIScriptError.isFromChromeContext).
Stubs are updated to include the new property.
Assignee | ||
Comment 24•6 years ago
|
||
A preference is added to enable this feature, another one
to store the last value of the checkbox.
When unchecked, the console hides all the messages that
don't originate from a chrome contect, via the chromeContext
property on the message.
Since we already have a test to check that content messages are
displayed in the console output, we use it to assert the
effects of the "Show content messages" checkbox.
Depends on D26336
Assignee | ||
Updated•6 years ago
|
Comment 25•6 years ago
|
||
Comment 26•6 years ago
|
||
Comment 27•6 years ago
|
||
Backed out for perma dt fails on devtools/client/webconsole/test/fixtures/stub-generators/browser_webconsole_check_stubs_page_error.js
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=240566195&repo=autoland&lineNumber=5643
Backout: https://hg.mozilla.org/integration/autoland/rev/eb8d178cd72a4b86306bfb67872a96d26d348f9d
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b5164ff07d12
https://hg.mozilla.org/mozilla-central/rev/8186ed6d36ff
Updated•6 years ago
|
Comment 31•5 years ago
|
||
There doesn't seem to be any kind of checkbox in the browser console to show this information. Am I missing something?
Assignee | ||
Comment 32•5 years ago
|
||
You need to set the devtools.browserconsole.filterContentMessages
preference to true
.
We plan to enable it by default in the next weeks.
Comment 33•5 years ago
|
||
Added a paragraph to the end of the introductory section of the Browser Console page describing the checkbox. I'd like to add a bit more content here, however, describing what those content messages are so readers understand the context.
Also added this to the Firefox 68 release notes:
The Browser Console now allows you to show or hide messages from the content process by setting or clearing the checkbox labeled Show Content Messages ({{bug(1260877)}}).
Assignee | ||
Comment 34•5 years ago
|
||
Thanks Irene, I added some precision to what are content process messages and asked for review on the mdn page.
Comment 35•5 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #34)
Thanks Irene, I added some precision to what are content process messages and asked for review on the mdn page.
As an FYI, it is probably not a good idea to use the Editorial review flag on the page itself. These don't really flag anything, or ping someone, and tend to just sit there and get ignored. It would be better to ni Irene in the bug (done!).
Comment 36•5 years ago
|
||
(In reply to Chris Mills (Mozilla, MDN editor) [:cmills] from comment #35)
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #34)
Thanks Irene, I added some precision to what are content process messages and asked for review on the mdn page.
As an FYI, it is probably not a good idea to use the Editorial review flag on the page itself. These don't really flag anything, or ping someone, and tend to just sit there and get ignored. It would be better to ni Irene in the bug (done!).
Thanks for the update, Nicolas, I took a quick look at your changes and appreciate your time.
Description
•