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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-08-27 08:44:59 +00:00
parent 1535cd608a
commit 3cdbe7c9b8

View File

@ -2883,7 +2883,14 @@ Toolbox.prototype = {
*/
_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);