diff --git a/browser/base/content/tabbrowser.js b/browser/base/content/tabbrowser.js index 37a40a651349..9bd35c8aaf2d 100644 --- a/browser/base/content/tabbrowser.js +++ b/browser/base/content/tabbrowser.js @@ -2289,6 +2289,7 @@ window._gBrowser = { forceNotRemote, fromExternal, index, + lazyTabTitle, name, nextTabParentId, noInitialLabel, @@ -2306,7 +2307,6 @@ window._gBrowser = { sameProcessAsFrameLoader, skipAnimation, skipBackgroundNotify, - title, triggeringPrincipal, userContextId, recordExecution, @@ -2553,7 +2553,7 @@ window._gBrowser = { SessionStore.setTabState(t, { entries: [{ url: lazyBrowserURI ? lazyBrowserURI.spec : "about:blank", - title, + title: lazyTabTitle, triggeringPrincipal_base64: Utils.serializePrincipal(triggeringPrincipal), }], }); diff --git a/browser/components/extensions/parent/ext-tabs.js b/browser/components/extensions/parent/ext-tabs.js index de2256c52d33..e1e924e12451 100644 --- a/browser/components/extensions/parent/ext-tabs.js +++ b/browser/components/extensions/parent/ext-tabs.js @@ -606,7 +606,7 @@ this.tabs = class extends ExtensionAPI { } // Simple properties - const properties = ["index", "pinned", "title"]; + const properties = ["index", "pinned"]; for (let prop of properties) { if (createProperties[prop] != null) { options[prop] = createProperties[prop]; @@ -626,6 +626,7 @@ this.tabs = class extends ExtensionAPI { return Promise.reject({message: `Cannot create a discarded new tab or "about" urls.`}); } options.createLazyBrowser = true; + options.lazyTabTitle = createProperties.title; } else if (createProperties.title) { return Promise.reject({message: `Title may only be set for discarded tabs.`}); }