Open Bug 1700797 Opened 4 years ago Updated 2 months ago

runtime.onInstalled Does not run if the extension is updated while it is disabled

Categories

(WebExtensions :: General, defect, P3)

Firefox 87
defect

Tracking

(firefox87 affected, firefox88 affected, firefox89 affected)

Tracking Status
firefox87 --- affected
firefox88 --- affected
firefox89 --- affected

People

(Reporter: filipe.panni, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [wecg][addons-jira])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0

Steps to reproduce:

1 - Install an old version of an extension
2 - Disable the extension
3 - Update your extensions to the latest version
4 - Enable the extension again

Actual results:

The listeners of "runtime.onInstalled" will not be called when activating the extension

Expected results:

1 - The extension should not be updated if it was disabled
2 - Or when you activate the extension, the "runtime.onInstalled" listeners should be called.

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Product: Firefox → WebExtensions

Hello,

I reproduced the issue on the latest Nightly (89.0a1/20210325161138), Beta (88.0b3/20210325185929) and Release (87.0/20210318103112) under Windows 10 x64 and Ubuntu 16.04 LTS.

Performing the actions mentioned in the STR, revealed indeed that add-ons can be updated while disabled and that the web console does not log the “onInstalled” event when enabling the add-on post update. The “onInstalled” event is triggered when initially installing the add-on and after updating it, but not when re-enabling the add-on. For further details, see the attached screenshot.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached image 2021-03-26_10h25_41.png
Severity: -- → S3
Priority: -- → P3

Chrome seems to have the same behavior - https://bugs.chromium.org/p/chromium/issues/detail?id=388231

Component: Untriaged → General

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --
Priority: -- → P3
Blocks: 1817287
Duplicate of this bug: 1826825
Duplicate of this bug: 1906670

Bug 1826825 and bug 1906670 include test cases and more context on this issue.

Whiteboard: [wecg] → [wecg][addons-jira]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: