From 91ec0c4a6d5516b1a74aed7ad12425b60440fc82 Mon Sep 17 00:00:00 2001 From: baku Date: Mon, 24 Apr 2017 11:37:40 +0200 Subject: [PATCH] Pinned tabs should be stored as such - issue #456 --- index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ba86ad3..d1f005d 100644 --- a/index.js +++ b/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);