Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use openerTabId with openNewTabs on Firefox #4518

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Use openerTabId with openNewTabs on Firefox #4518

merged 2 commits into from
Nov 13, 2017

Conversation

jsmnbom
Copy link
Contributor

@jsmnbom jsmnbom commented Oct 30, 2017

Relevant issue: fixes #4514
Tested in browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

Edit(erikdesjardins): fixes #4230
Edit(mc10): fixes #190

Copy link
Collaborator

@erikdesjardins erikdesjardins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just Firefox is what I wanted, thanks!

@erikdesjardins erikdesjardins added this to the v5.11.x (v5.12.0) milestone Oct 30, 2017
urls.forEach((url, i) => {
chrome.tabs.create({
url,
active: i === focusIndex,
index: ++currentIndex,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the index no longer necessary? It's still being used in Chrome's background.entry.js.

Copy link
Collaborator

@erikdesjardins erikdesjardins Nov 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes; ideally we would never use index, but:
In Chrome, if you don't specify index, all tabs go to the end, instead of being grouped next to the openerTabId tab (like ctrl/middle-clicking would do).
In Firefox, if you don't specify index, new tabs are grouped next to the openerTabId tab, or at the end if you've disabled insertRelatedAfterCurrent, which is #4230 (either way, the same as ctrl/middle-clicking).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants