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

Properly set openerTabId on new tabs #52

Open
jaens opened this issue May 22, 2022 · 0 comments
Open

Properly set openerTabId on new tabs #52

jaens opened this issue May 22, 2022 · 0 comments

Comments

@jaens
Copy link

jaens commented May 22, 2022

Is your feature request related to a problem? Please describe.

When new tabs are opened by the extension, they are not linked to the originating tab due to not having the openerTabId property passed to browser.tabs.create().

This somewhat confuses tab management extensions such as Tree Style Tab causing them to possibly insert the tab into suboptimal positions.

Describe the solution you'd like

When opening new tabs, the openerTabId should preferably be set to the originating tab ID, retrieved from eg. (await browser.tabs.query({active: true, currentWindow: true}))[0]?.id.

Additional context

I'm willing to work on a pull request if this sounds fine. Hints where to modify the code are appreciated.

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

No branches or pull requests

1 participant