Closed
Bug 335238
Opened 18 years ago
Closed 18 years ago
update requests for disabled extensions should have some "disabled" indicator in the request
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8.1beta1
People
(Reporter: shaver, Assigned: mossop)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
4.49 KB,
patch
|
mossop
:
review+
robert.strong.bugs
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
When we fetch update information for a disabled extension, it would be good to have some way of telling on the server side that the extension was disabled. This would be useful information for extension authors, and would also help us make sure that blacklisted extensions are being treated appropriately. We could put it in the URL via another %EXT_STATUS% substitution, or add an X-Mozilla-Extension-Status: header to the request, as two options that come immediately to mind.
Comment 1•18 years ago
|
||
There are two types of disabled props - app disabled and user disabled. They are independent of each other so it may be best to send both.
Reporter | ||
Comment 2•18 years ago
|
||
We could do a comma-separated set of status flags, or something: status=ok status=appdisabled status=appdisabled,userdisabled status=blacklisted (or more compact versions of those, if desired)
Comment 3•18 years ago
|
||
This is trivial to add and I'll try to do so in the next couple of days if I can get / come up with a finalized set of codes to return. An add-on that is blocklisted is also appDisabled so instead of returning appDisabled how about returning why it is appDisabled? status=enabled status=userDisabled These 3 could potentially include userDisabled status=blocklisted status=incompatible status=needsDependencies Thoughts?
Reporter | ||
Comment 4•18 years ago
|
||
Those sound fine. I presume we know all the reasons that an extension can be disabled (from our test suite for this, of course ;) ), but we can add new entries to that list later if we need, right?
Comment 5•18 years ago
|
||
taking before I forget about this
Assignee: nobody → robert.bugzilla
Whiteboard: .5d
Target Milestone: --- → Firefox 2 beta1
Assignee | ||
Updated•18 years ago
|
Assignee: robert.bugzilla → mossop.bugzilla
Assignee | ||
Comment 6•18 years ago
|
||
Adds a %ITEM_STATUS% field to the update urls, made up as specified in comment 3. Also adds this field into the default update URL.
Attachment #226079 -
Flags: review?(robert.bugzilla)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 7•18 years ago
|
||
Comment on attachment 226079 [details] [diff] [review] patch rev 1 >Index: toolkit/mozapps/extensions/src/nsExtensionManager.js.in >=================================================================== >RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v >retrieving revision 1.198 >diff -u -8 -p -r1.198 nsExtensionManager.js.in >--- toolkit/mozapps/extensions/src/nsExtensionManager.js.in 15 Jun 2006 21:32:21 -0000 1.198 >+++ toolkit/mozapps/extensions/src/nsExtensionManager.js.in 18 Jun 2006 17:58:48 -0000 >@@ -6073,32 +6073,47 @@ RDFItemUpdater.prototype = { ... >+ var itemStatus; >+ if (emDS.getItemProperty(aItem.id, "userDisabled") == "true" || >+ emDS.getItemProperty(aItem.id, "userDisabled") == OP_NEEDS_ENABLE) >+ itemStatus = "userDisabled"; >+ else >+ itemStatus = "enabled"; After looking at it I think this would makes more sense if it were userEnabled. r=me with that change.
Attachment #226079 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 8•18 years ago
|
||
Addressed comment, carrying over review, ready for checkin.
Attachment #226079 -
Attachment is obsolete: true
Attachment #226190 -
Flags: review+
Assignee | ||
Updated•18 years ago
|
Whiteboard: .5d → [needs checkin]
Updated•18 years ago
|
Whiteboard: [needs checkin] → [checkin needed]
Comment 9•18 years ago
|
||
Checked in on trunk. I'm going to let this bake for a couple of days before approving for 1.8.1. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Updated•18 years ago
|
Attachment #226190 -
Flags: approval-branch-1.8.1+
Comment 10•18 years ago
|
||
I decided this is safe to land so checked in to MOZILLA_1_8_BRANCH for Firefox 2.0
Keywords: fixed1.8.1
Comment 11•18 years ago
|
||
Robert your checkin for bug 307358 extensions.properties rev 1.27 removes the changes made to extensions.update.url in rev 1.26 (only in trunk - not in 1.8_Branch).
Comment 12•18 years ago
|
||
(In reply to comment #11) Thanks and fixed.
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•