diff --git a/common/content/buffer.js b/common/content/buffer.js index acbaf90c..bc17396d 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -482,7 +482,7 @@ function Buffer() //{{{ if (arg && (liberator.has("Win32") || arg[0] != ">")) return liberator.echoerr("E488: Trailing characters"); - options.temporaryContext(function () { + options.withContext(function () { if (arg) { options.setPref("print.print_to_file", "true"); diff --git a/common/content/liberator.js b/common/content/liberator.js index 1bd45690..b1a6e095 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -1109,10 +1109,10 @@ const liberator = (function () //{{{ if (!liberator.has("tabs")) return open(urls, liberator.NEW_WINDOW); - let tab = getBrowser().addTab(url, null, null, postdata); - - if (where == liberator.NEW_TAB) - getBrowser().selectedTab = tab; + options.withContext(function () { + options.setPref("browser.tabs.loadInBackground", true); + getBrowser().loadOneTab(url, null, null, postdata, where == liberator.NEW_BACKGROUND_TAB); + }); break; case liberator.NEW_WINDOW: diff --git a/common/content/options.js b/common/content/options.js index 95512ff0..b2ca0b1b 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -1026,7 +1026,7 @@ function Options() //{{{ storePreference(k, v); }, - temporaryContext: function (fn, self) + withContext: function (fn, self) { try {