Bug 1576653 - Use a custom toolbox window title for the omniscient browser toolbox r=nchevobbe,yulia
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 27 Aug 2019 08:44:59 +0000
changeset 553772 c0535352f1201b8274a30fd7943d44e8a84ca9ed
parent 553771 e1b2ac748cea44945acb4c53cbcd174dc6c61dd7
child 553773 5c69342869b413c4249304f8fd016603652fc809
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe, yulia
bugs1576653
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576653 - Use a custom toolbox window title for the omniscient browser toolbox r=nchevobbe,yulia Depends on D43473 Differential Revision: https://phabricator.services.mozilla.com/D43478
devtools/client/framework/toolbox.js
--- a/devtools/client/framework/toolbox.js
+++ b/devtools/client/framework/toolbox.js
@@ -2878,17 +2878,24 @@ Toolbox.prototype = {
     this.telemetry.getKeyedHistogramById(telemetryKey).add(toolId, delay);
   },
 
   /**
    * Refresh the host's title.
    */
   _refreshHostTitle: function() {
     let title;
-    if (this.target.name && this.target.name != this.target.url) {
+
+    const isOmniscientBrowserToolbox =
+      this.target.isParentProcess &&
+      Services.prefs.getBoolPref("devtools.browsertoolbox.fission", false);
+
+    if (isOmniscientBrowserToolbox) {
+      title = "💥 Omniscient Browser Toolbox 💥";
+    } else if (this.target.name && this.target.name != this.target.url) {
       const url = this.target.isWebExtension
         ? this.target.getExtensionPathName(this.target.url)
         : getUnicodeUrl(this.target.url);
       title = L10N.getFormatStr(
         "toolbox.titleTemplate2",
         this.target.name,
         url
       );