On ESR 153.7.0 addons may take a very long time to be enabled/disabled
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
People
(Reporter: dan23, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:160.0) Gecko/20100101 Firefox/160.0
Steps to reproduce
While having 3 other addons installed aswell, open an addon like uBlock Origin (attach it to toolbar, so the addon's icon appears) and disable it. Wait and enabled it again (with toggle switch on about:addons )
Actual results
Often, the icon remains, indicating Firefox having trouble disabling and re-enabling an addon. See debug-profile here (with details about the other 3 addons in this case): https://share.firefox.dev/4iPzxTg
Expected results
It should only require Firefox 1 or 2 seconds to enable or disable any addon.
Comment 1•13 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Add-ons Manager' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Comment 2•13 days ago
|
||
ESR 140.17.0 affected aswell.
Comment 3•10 days ago
|
||
The profile shows that the main thread of the extension process is eternally busy with doing work.
Specifically this extension enters an infinite loop in the getIntermediateVersions function: https://addons.mozilla.org/en-US/firefox/addon/dot-release-notes-opener/
If you know the author, perhaps consider using this library to compare version numbers: https://github.com/mozilla/addons-moz-compare
When Firefox disables an extension, it asks child processes to confirm the shutdown. Because the extension process is stuck doing something, the extension process does not respond, until a timeout is reached (8 seconds).
Right now all extensions share the same process, if we put them in separate processes (bug 1827085), one busy extension would not block another.
| Reporter | ||
Comment 4•9 days ago
|
||
My addon, it's not comparing addon-versions, it's comparing Firefox versions, and is supposed to show all release-notes (in separate tabs) between 2 versions if a client updates Firefox after several patches, where Firefox by default only displays (or used to, at least...) releasenotes of latest version instead of opening ALL releasenotes of in-between patches aswell. Fixed it now I think, thanks!
Description
•