Closed Bug 264750 Opened 20 years ago Closed 19 years ago

Updating disabled extensions re-enables them

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: praseodym+mozbugzilla, Assigned: robert.strong.bugs)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040924 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040924 Firefox/0.10.1

When I updated a disabled extension (disabled by me and not automatically
because of incompatibility), restarting firefox re-enabled the extension again.

Reproducible: Always
Steps to Reproduce:
1. Disable not-up-to-date an extension
2. Update the extensions
3. Restart Firefox

Actual Results:  
The extension was enabled again.

Expected Results:  
Leave the extension disabled.
related: bug 260754

You did *NOT* restart between disabling and updating the extension, right?
AFAIK It doesn't matter if you restart or not.
confirmed with windows build 2004-10-18-07-0.9
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-aviary1.1?
Whiteboard: [asaP1]
Assignee: bugs → nobody
QA Contact: bugs → benjamin
Whiteboard: [asaP1] → [asaP1][check after EM rework]
Can someone confirm this with current trunk/1.1a2 builds?
Confirmed on "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b3)
Gecko/20050711 Firefox/1.0+".

There's two related issues here, I should point out.

Firstly, the option to check for updates in Tools > Options > Advanced > Update
will check disabled extensions for updates (arguable both ways whether this
should happen) and, secondly, when it does find an update the extension is
re-enabled post-update (which is what this bug is specifically about).
Attached patch patch in progress (obsolete) — Splinter Review
Assignee: nobody → rob_strong
Status: NEW → ASSIGNED
Flags: blocking-aviary1.1? → blocking1.8b4+
Attached patch patch in progress (obsolete) — Splinter Review
This retains the user disabled state when an incompatibility check makes an
installed item compatible. Now to add retention of the user disabled state when
an item is upgraded.
Attachment #189134 - Attachment is obsolete: true
Attached patch patch (obsolete) — Splinter Review
Attachment #189516 - Attachment is obsolete: true
Attachment #189525 - Flags: review?(benjamin)
Comment on attachment 189525 [details] [diff] [review]
patch

Will "appDisabled" be used for the extension-dependency auto-disablement also,
or will you need a third property for that?
Attachment #189525 - Flags: review?(benjamin) → review+
Comment on attachment 189525 [details] [diff] [review]
patch

It will be used for extension dependencies as well.
Attachment #189525 - Flags: approval1.8b4?
Attachment #189525 - Flags: approval1.8b4? → approval1.8b4+
I'm going to hold off on this until after bug 297312 and bug 296566 are checked in.
Blocks: 300116
Benjamin - this has a couple of minor tweaks to the old patch and also adds
feedback to the EM ui during update. It also removes getUpdateableItemList
since I moved the checks into checkForUpdates due to the ui not providing
feedback of what is going on to the user. If you prefer that I separate the ui
updating code into a new patch I will but I won't be able to for a few hours.
Attachment #189525 - Attachment is obsolete: true
Attachment #190458 - Flags: review?(benjamin)
Comment on attachment 190458 [details] [diff] [review]
patch (Checked in)

beautiful
Attachment #190458 - Flags: review?(benjamin)
Attachment #190458 - Flags: review+
Attachment #190458 - Flags: approval1.8b4+
Whiteboard: [asaP1][check after EM rework] → [checkin needed][a+][asaP1]
Comment on attachment 190458 [details] [diff] [review]
patch (Checked in)

Checking in
mozapps/extensions/public/nsIExtensionManager.idl;
new revision: 1.39; previous revision: 1.38
mozapps/extensions/src/nsExtensionManager.js.in;
new revision: 1.134; previous revision: 1.133
mozapps/extensions/content/update.js;
new revision: 1.15; previous revision: 1.14
locales/en-US/chrome/mozapps/extensions/extensions.properties;
new revision: 1.17; previous revision: 1.16
done
Attachment #190458 - Attachment description: patch → patch (Checked in)
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Depends on: 302271
Whiteboard: [checkin needed][a+][asaP1]
*** Bug 299496 has been marked as a duplicate of this bug. ***
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: