Skip to content

Commit

Permalink
Use openerTabId with openNewTabs on Firefox (#4518)
Browse files Browse the repository at this point in the history
* Use openerTabId with openNewTabs on Firefox

* require firefox 57
  • Loading branch information
jsmnbom authored and erikdesjardins committed Nov 13, 2017
1 parent bde40b7 commit d840ad1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions firefox/background.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ addListener('download', ({ url, filename }) => {
chrome.downloads.download({ url, filename });
});

// Firefox doesn't support openerTabId, and needs cookieStoreId to open in correct container
addListener('openNewTabs', ({ urls, focusIndex }, { index: currentIndex, cookieStoreId }) => {
// Firefox needs cookieStoreId to open in correct container
addListener('openNewTabs', ({ urls, focusIndex }, { id: tabId, cookieStoreId }) => {
urls.forEach((url, i) => {
chrome.tabs.create({
url,
active: i === focusIndex,
index: ++currentIndex,
openerTabId: tabId,
cookieStoreId,
});
});
Expand Down
2 changes: 1 addition & 1 deletion firefox/beta/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"applications": {
"gecko": {
"id": "jid1-xUfzOsOFlzSOXg@jetpack",
"strict_min_version": "55.0"
"strict_min_version": "57.0"
}
},
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"applications": {
"gecko": {
"id": "jid1-xUfzOsOFlzSOXg@jetpack",
"strict_min_version": "55.0"
"strict_min_version": "57.0"
}
},
"icons": {
Expand Down

0 comments on commit d840ad1

Please sign in to comment.