The management.onInstalled event is not fired on a browser restart if an extensions update is delayed.
Categories
(WebExtensions :: Untriaged, defect, P3)
Tracking
(firefox128 affected, firefox129 affected, firefox130 affected)
People
(Reporter: anonymous30901032, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Steps to reproduce:
1 - Install the Extension Update Checker extension that has a top level listener for management.onInstalled: ( https://addons.mozilla.org/en-US/firefox/addon/extension-update-checker/ ). It will log a message to its Console when a management.onInstalled event fires. It will also log a message for a management.onUninstalled event.
2 - If the uBlock Origin ( https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/ ) extension is currently installed, remove it. If removing it from the about:addons page, the page may need to be reloaded to completely uninstall it. Verify that it is uninstalled in the Console of the Extension Update Checker extension ( about:debugging ).
3 - Install an old version of uBlock Origin, for example: ( https://addons.mozilla.org/firefox/downloads/file/4261710/ublock_origin-1.57.2.xpi ). The uBlock Origin extension listens to the runtime.onUpdateAvailable event and delays updates until the browser restarts.
4 - Verify that a management.onInstalled event fired for uBlock Origin in the Console for Extension Update Checker.
5 - Run 'Check for Updates' in the about:addons page with 'Update Add-ons Automatically' selected. The uBlock Origin extensions update will be delayed.
6 - Select the 'View Available Updates' button. The uBlock Origin extension should have an 'Update Now' button under it with a notice that it will be updated when the browser restarts.
7 - Click the 'Update Now' button. Verify that a management.onInstalled event fired for uBlock Origin in the Console for Extension Update Checker.
8 - Repeat steps 2-6, so the 'Update Now' button is showing again for uBlock Origin.
9 - Close the Console and then restart the browser without selecting the 'Update Now' button.
10 - Open the Console for Extension Update Checker. The management.onInstalled event will not have fired for the uBlock Origin update.
Expected results:
The management.onInstalled event should have fired for uBlock Origin after the browser restarts.
Note, the runtime.onInstalled event also doesn't fire when an extension delays an update ( https://bugzilla.mozilla.org/show_bug.cgi?id=1826825 ). If that bug is fixed, it may be convenient to fix this one at the same time or vice versa.
Comment 1•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 months ago
|
||
Hello,
I reproduced the issue on the latest Nightly (130.0a1/20240709214133), Beta (129.0b1/20240708194140) and Release (128.0/20240704121409) under Windows 10 and Ubuntu 22.04 LTS.
The issue occurs as described in Comment 0.
Updated•4 months ago
|
Updated•4 months ago
|
Description
•