GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
I've upgraded to Firefox 57, and migrated my script from GM_openInTab to GM.openInTab. I have browser.tabs.insertRelatedAfterCurrent = false. When tabs are opened, they are placed incorrectly, as if insertRelatedAfterCurrent was true.
Webextensions don't have access to this setting. :(
The solution would be to create a settings page to allow the user to set this.
Adding another parameter to the function would also work in my case, as it is now my script is unusable.
Make `GM.openInTab` open a tab in a correct place in Firefox 57+.
Fixes greasemonkey#2672 .
This uses `openerTabId` property of `tabs.create()` that implemented in Firefox 57.
Avoid the error which be occured by `opennerTabId` in Firefox 52 ESR.
Additionally, removes unnecessary `tabs.Tab.windowId` and `tabs.Tab.index` if `tabs.Tab.opennerTabId` exists.
These complete greasemonkey@256bf16 and resolves greasemonkey#2672 as a result.