Resolve browser.tabs.duplicate() promise right away (before tabs are completely loaded)
Categories
(WebExtensions :: General, enhancement, P5)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: yuki, Assigned: aria, Mentored)
References
Details
(5 keywords, Whiteboard: [design-decision-approved])
Attachments
(1 file)
Updated•7 years ago
|
Reporter | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88d980179ff9
Resolve browser.tabs.duplicate() promise as soon as possible r=zombie
Comment 13•6 years ago
|
||
bugherder |
Comment 14•6 years ago
|
||
Thanks for the patch, ariasuni! Your contribution has been added to our recognition wiki: https://wiki.mozilla.org/Add-ons/Contribute/Recognition
Would you be interested in creating an account on mozillians.org? I'd be happy to vouch for you!
Comment 15•6 years ago
|
||
Hi Mike, this might break some extensions that expect the duplicated tab to be fully loaded when the promise resolves, and should probably be mentioned in the release notes blog post.
Assignee | ||
Comment 16•6 years ago
|
||
(In reply to Caitlin Neiman [:caitmuenster] from comment #14)
Thanks for the patch, ariasuni! Your contribution has been added to our recognition wiki: https://wiki.mozilla.org/Add-ons/Contribute/Recognition
Would you be interested in creating an account on mozillians.org? I'd be happy to vouch for you!
I created a profile here: https://mozillians.org/fr/u/ariasuni/ :)
Comment 17•6 years ago
|
||
(In reply to ariasuni from comment #16)
I created a profile here: https://mozillians.org/fr/u/ariasuni/ :)
You are vouched! 🎉 Welcome onboard! I look forward to seeing you around the project. :)
Comment 18•6 years ago
|
||
(In reply to Tomislav Jovanovic :zombie from comment #15)
Hi Mike, this might break some extensions that expect the duplicated tab to be fully loaded when the promise resolves, and should probably be mentioned in the release notes blog post.
Thanks. Let's make sure this behavior is explicitly noted in the documentation on MDN, too.
Comment 19•6 years ago
|
||
Can you please provide some STR for this issue so we can check it manually? If no manual testing is needed please mark it as "qe-verify- "
Comment 21•6 years ago
|
||
Added the following note to the page tabs.duplicate:
Note: Beginning with Firefox 68, the promise returned by browser.tabs.duplicate() resolves immediately for performance reasons. Your extension should not depend on the duplicated tab to be fully loaded when the promise resolves.
If this isn't enough information, please let me know.
Updated•6 years ago
|
Comment 22•6 years ago
|
||
There is no performance reason for this; the main motivation for this feature is to allow tab manager extensions to update their own UI as soon as possible.
The next note,
Your extension should not depend on the duplicated tab to be fully loaded when the promise resolves.
... is a bug. This has been fixed in Firefox 69 and uplifted to ESR 68 - see bug 1559216
I'd change the note to "... resolves as soon as the tab has been duplicated. Previously, the promise only resolved once the tab had fully been loaded."
If you can find a concise way to mention the regression/fix from bug 1559216, include it, but otherwise you may omit it.
Comment 23•6 years ago
|
||
Made the change. Also, the BCD information is now showing on the page.
Description
•