Closed Bug 346498 Opened 18 years ago Closed 18 years ago

Only allow hidden and locked for restricted locations and appManaged for app-global locations

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 1 obsolete file)

Patch coming up.
Attached patch patch (obsolete) — Splinter Review
This is just a simple patch for a little added protection by making it a requirement in the datasource itself for an extension to always be installed into appdir/extensions for the hidden and locked attributes to be honored.
Attachment #231278 - Flags: review?(benjamin)
Comment on attachment 231278 [details] [diff] [review] patch I'm not sure I understand... will this make em:hidden and em:locked never return true, or does a null return fallback to the real database?
Comment on attachment 231278 [details] [diff] [review] patch returning null will return the value from the real rdf. I think we should probably do the same for appManaged and I'll submit another patch.
Attachment #231278 - Flags: review?(benjamin)
Attached patch patchSplinter Review
Attachment #231278 - Attachment is obsolete: true
Attachment #237387 - Flags: review?(benjamin)
Attachment #237387 - Flags: review?(benjamin) → review+
Checked in to trunk
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Summary: Only allow hidden and locked for app-global extensions → Only allow hidden and locked for restricted locations and appManaged for app-global locations
Comment on attachment 237387 [details] [diff] [review] patch Drivers, this prevents an add-on from hiding or locking itself by modifying the extensions datasource and adding em:hidden / em:locked to itself. Though this isn't critical I'd like to get it in 1.8.1 so these capabilities aren't expected to work in the future unless the add-on is installed into a restricted location.
Attachment #237387 - Flags: approval1.8.1?
Comment on attachment 237387 [details] [diff] [review] patch a=schrep for drivers.
Attachment #237387 - Flags: approval1.8.1? → approval1.8.1+
Checked in to MOZILLA_1_8_BRANCH
Keywords: fixed1.8.1
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: