Bug 1260877 - Display a Show content messages checkbox in Browser Console. r=bgrins. draft
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Tue, 16 Apr 2019 05:32:49 +0000
changeset 11381 87efd014060e
parent 11380 37f5c277779a
child 11382 87f0aa523e0a
push id200
push userflodolo@mozilla.com
push dateWed, 17 Apr 2019 06:15:47 +0000
reviewersbgrins
bugs1260877
Bug 1260877 - Display a Show content messages checkbox in Browser Console. r=bgrins. 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. Differential Revision: https://phabricator.services.mozilla.com/D26337 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: e4f28c65616566391d87789bb02a362942e86f11 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 7b5b8c302a1ab509c7e995254f0e7a809db07327 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 15f10287a218572a7fd47acabb40208645b4462d
devtools/client/webconsole.properties
--- a/devtools/client/webconsole.properties
+++ b/devtools/client/webconsole.properties
@@ -288,16 +288,25 @@ webconsole.filteredMessages.label=#1 ite
 # It resets the default filters of the console to their original values.
 webconsole.resetFiltersButton.label=Reset filters
 
 # LOCALIZATION NOTE (webconsole.enablePersistentLogs.label)
 webconsole.enablePersistentLogs.label=Persist Logs
 # LOCALIZATION NOTE (webconsole.enablePersistentLogs.tooltip)
 webconsole.enablePersistentLogs.tooltip=If you enable this option the output will not be cleared each time you navigate to a new page
 
+# LOCALIZATION NOTE (browserconsole.contentMessagesCheckbox.label)
+# Label used in the browser console filter bar. This label is used for a checkbox that
+# allows the user to show or hide console messages from the content process in the browser
+# console.
+browserconsole.contentMessagesCheckbox.label=Show Content Messages
+# LOCALIZATION NOTE (browserconsole.contentMessagesCheckbox.tooltip)
+# Tooltip for the "Show content messages" checkbox in the Browser Console filter bar.
+browserconsole.contentMessagesCheckbox.tooltip=Enable this to display messages from the content process in the output
+
 # LOCALIZATION NOTE (webconsole.navigated): this string is used in the console when the
 # current inspected page is navigated to a new location.
 # Parameters: %S is the new URL.
 webconsole.navigated=Navigated to %S
 
 # LOCALIZATION NOTE (webconsole.closeSplitConsoleButton.tooltip): This is the tooltip for
 # the close button of the split console.
 webconsole.closeSplitConsoleButton.tooltip=Close Split Console (Esc)