turn object|null * A BrowserConsole instance or null if the Browser Console is not * open. */ getBrowserConsole() { return this.#browserConsole; } /** * Set the title of the Browser Console window. * * @param {Window} win: The BrowserConsole window */ updateWindowTitle(win) { let title; const mode = Services.prefs.getCharPref( "devtools.browsertoolbox.scope", null ); if (mode == "everything") { title = l10n.getStr("multiProcessBrowserConsole.title"); } else if (mode == "parent-process") { title = l10n.getStr("parentProcessBrowserConsole.title"); } else { throw new Error("Unsupported mode: " + mode); } win.document.title = title; } } exports.BrowserConsoleManager = new BrowserConsoleManager(); PK