Pinned tabs should be stored as such - issue #456
This commit is contained in:
parent
0b1d6e9087
commit
91ec0c4a6d
1 changed files with 12 additions and 1 deletions
13
index.js
13
index.js
|
@ -457,7 +457,13 @@ const ContainerService = {
|
|||
},
|
||||
|
||||
_createTabObject(tab) {
|
||||
return { title: tab.title, url: tab.url, id: tab.id, active: true };
|
||||
return {
|
||||
title: tab.title,
|
||||
url: tab.url,
|
||||
id: tab.id,
|
||||
active: true,
|
||||
pinned: tabsUtils.isPinned(viewFor(tab))
|
||||
};
|
||||
},
|
||||
|
||||
_containerTabIterator(userContextId, cb) {
|
||||
|
@ -648,6 +654,7 @@ const ContainerService = {
|
|||
url: object.url,
|
||||
nofocus: args.nofocus || false,
|
||||
window: args.window || null,
|
||||
pinned: object.pinned,
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -869,6 +876,10 @@ const ContainerService = {
|
|||
browserWin.gBrowser.selectedTab = tab;
|
||||
browserWin.focusAndSelectUrlBar();
|
||||
}
|
||||
|
||||
if (args.pinned) {
|
||||
browserWin.gBrowser.pinTab(tab);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}).catch(() => false);
|
||||
|
|
Loading…
Add table
Reference in a new issue