Skip to content

Commit 6c0f2c9

Browse files
sam113101maxauthority
authored andcommitted
use addTab instead of loadOneTab (fixes #740) (#753)
1 parent d3c61fa commit 6c0f2c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/content/liberator.js

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

840840
options.withContext(function () {
841-
options.setPref("browser.tabs.loadInBackground", true);
842-
browser.loadOneTab(url, null, null, postdata, where == liberator.NEW_BACKGROUND_TAB);
841+
browser.addTab(url, { postData: postdata });
842+
if (where != liberator.NEW_BACKGROUND_TAB)
843+
browser.selectTabAtIndex(-1);
843844
});
844845
break;
845846

0 commit comments

Comments
 (0)