focus on tab opened
This commit is contained in:
@@ -236,14 +236,10 @@ const ContainerService = {
|
|||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this._recentBrowserWindow().then(browserWin => {
|
return this.openTab({}).then(() => {
|
||||||
browserWin.gBrowser.addTab();
|
|
||||||
|
|
||||||
for (let tab of tabsToClose) { // eslint-disable-line prefer-const
|
for (let tab of tabsToClose) { // eslint-disable-line prefer-const
|
||||||
tab.close();
|
tab.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.resolve(null);
|
|
||||||
}).catch(() => null);
|
}).catch(() => null);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -470,6 +466,7 @@ const ContainerService = {
|
|||||||
|
|
||||||
const tab = browserWin.gBrowser.addTab(args.url || null, { userContextId });
|
const tab = browserWin.gBrowser.addTab(args.url || null, { userContextId });
|
||||||
browserWin.gBrowser.selectedTab = tab;
|
browserWin.gBrowser.selectedTab = tab;
|
||||||
|
browserWin.focusAndSelectUrlBar();
|
||||||
return true;
|
return true;
|
||||||
}).catch(() => false);
|
}).catch(() => false);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user