Closed Bug 1367800 Opened 7 years ago Closed 5 years ago

hidden extension updates show up in about:addons if open during update

Categories

(Toolkit :: Add-ons Manager, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla66
Tracking Status
firefox66 --- verified

People

(Reporter: rhelmer, Assigned: rhelmer)

References

Details

(Whiteboard: triaged)

Attachments

(3 files, 1 obsolete file)

If about:addons is open when a background update happens, any hotfix or system add-on updates found show up. On refresh they go away.

System add-on updates are never uninstallable or user-disableable so there isn't a danger of users accidentally removing something important.
I suspect the issue here is there is an install listener that isn't checking to see that an add-on is hidden.

The fact that this happens to hotfix too makes me think this is probably an old bug and so was overlooked for system add-on updates too.
Comment on attachment 8871348 [details]
Bug 1367800 - do not display hidden add-ons in about:addons during upgrades.

https://reviewboard.mozilla.org/r/142826/#review147138

I think we should also check if the add-on is hidden before adding the item, so they don't briefly show up during the download/install and then mysteriously disappear. r=me with that.
Attachment #8871348 - Flags: review+
aswan points out that we do have browser tests for ensuring that hidden add-ons don't appear in the UI, so I will add some tests now (was going to defer it to a followup, when I thought we didn't have test coverage for this).
Whiteboard: triaged
Attachment #8871348 - Flags: review?(aswan)
As I’ve said in the duplicate bug 1367559 comment 2, I’ve previously not had a screenshot of system add-ons in the Add-ons Manager.

After a recent system add-ons update, I finally got a screenshot of system add-ons in the Add-ons Manager, so I’m posting it here, because bug 1367559 is a duplicate of this bug.
Summary: hotfix and system add-on updates show up in about:addons if open during update → system add-on updates show up in about:addons if open during update
Summary: system add-on updates show up in about:addons if open during update → hidden extension updates show up in about:addons if open during update

Let's land this! (paraphrasing kmaglione)

Flags: needinfo?(rhelmer)
Priority: -- → P1
Attachment #8871348 - Attachment is obsolete: true
Flags: needinfo?(rhelmer)

I tested this manually (reused the system add-on test set up in bug 1428459 comment 14) and I can reproduce this behavior by just leaving the add-ons manager open while add-on updates are running. The updates are hidden with the latest patch.

Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e80210429422f8aaafca1c5c36deaa5cff142387&selectedJob=223366973

Pushed by rhelmer@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bce1b588653a
do not display hidden add-ons in about:addons during upgrades. r=kmag
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66

Verified as fixed on Windows 10x64 and macOS 10.13.6 using https://treeherder.mozilla.org/#/jobs?repo=try&revision=e80210429422f8aaafca1c5c36deaa5cff142387&selectedJob=223366973 .

I can confirm that I reproduced the bug on previous versions.

I will attach a postfix screenshot.

Status: RESOLVED → VERIFIED
Attached image Before\after screenshot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: