Merge pull request #1541 from Karskaya/iss1041
Fix #1041- [Feature request] Open previously hidden tabs in the background
This commit is contained in:
commit
510a188dee
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,7 @@ const backgroundLogic = {
|
||||||
let url = options.url || undefined;
|
let url = options.url || undefined;
|
||||||
const userContextId = ("userContextId" in options) ? options.userContextId : 0;
|
const userContextId = ("userContextId" in options) ? options.userContextId : 0;
|
||||||
const active = ("nofocus" in options) ? options.nofocus : true;
|
const active = ("nofocus" in options) ? options.nofocus : true;
|
||||||
|
const discarded = ("noload" in options) ? options.noload : false;
|
||||||
|
|
||||||
const cookieStoreId = backgroundLogic.cookieStoreId(userContextId);
|
const cookieStoreId = backgroundLogic.cookieStoreId(userContextId);
|
||||||
// Autofocus url bar will happen in 54: https://bugzilla.mozilla.org/show_bug.cgi?id=1295072
|
// Autofocus url bar will happen in 54: https://bugzilla.mozilla.org/show_bug.cgi?id=1295072
|
||||||
|
@ -71,6 +72,7 @@ const backgroundLogic = {
|
||||||
return browser.tabs.create({
|
return browser.tabs.create({
|
||||||
url,
|
url,
|
||||||
active,
|
active,
|
||||||
|
discarded,
|
||||||
pinned: options.pinned || false,
|
pinned: options.pinned || false,
|
||||||
cookieStoreId
|
cookieStoreId
|
||||||
});
|
});
|
||||||
|
@ -313,6 +315,7 @@ const backgroundLogic = {
|
||||||
userContextId: userContextId,
|
userContextId: userContextId,
|
||||||
url: object.url,
|
url: object.url,
|
||||||
nofocus: options.nofocus || false,
|
nofocus: options.nofocus || false,
|
||||||
|
noload: true,
|
||||||
pinned: object.pinned,
|
pinned: object.pinned,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue