mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
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:
parent
1535cd608a
commit
3cdbe7c9b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user