Pinned tabs should be stored as such - issue #456

This commit is contained in:
baku 2017-04-24 11:37:40 +02:00 committed by Jonathan Kingston
parent 0b1d6e9087
commit 91ec0c4a6d

View file

@ -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);