Bug 1559835 - Remove comment at tabs.update(active:false) r=rpl

Differential Revision: https://phabricator.services.mozilla.com/D48817

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Rob Wu 2019-10-10 15:44:41 +00:00
parent 0ace7363ad
commit 07c1fc6c27
2 changed files with 4 additions and 12 deletions

View File

@ -827,12 +827,8 @@ this.tabs = class extends ExtensionAPI {
nativeTab.linkedBrowser.loadURI(url, options);
}
if (updateProperties.active !== null) {
if (updateProperties.active) {
tabbrowser.selectedTab = nativeTab;
} else {
// Not sure what to do here? Which tab should we select?
}
if (updateProperties.active) {
tabbrowser.selectedTab = nativeTab;
}
if (updateProperties.highlighted !== null) {
if (!gMultiSelectEnabled) {

View File

@ -411,12 +411,8 @@ this.tabs = class extends ExtensionAPI {
nativeTab.browser.loadURI(url, options);
}
if (updateProperties.active !== null) {
if (updateProperties.active) {
BrowserApp.selectTab(nativeTab);
} else {
// Not sure what to do here? Which tab should we select?
}
if (updateProperties.active) {
BrowserApp.selectTab(nativeTab);
}
// FIXME: highlighted/selected, muted, pinned, openerTabId, successorTabId