Skip to content

Commit 9acfc5d

Browse files
alexcustosmaxauthority
authored andcommitted
Fixed selection of newly opened tab (#774)
1 parent 8de1bc6 commit 9acfc5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/content/liberator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,9 +838,9 @@ const Liberator = Module("liberator", {
838838
}
839839

840840
options.withContext(function () {
841-
browser.addTab(url, { postData: postdata });
841+
var newTab = browser.addTab(url, { postData: postdata });
842842
if (where != liberator.NEW_BACKGROUND_TAB)
843-
browser.selectTabAtIndex(-1);
843+
browser.selectedTab = newTab;
844844
});
845845
break;
846846

0 commit comments

Comments
 (0)