Closed Bug 674464 Opened 14 years ago Closed 14 years ago

Flag changes to currentEngine and defaultEngine in nsIBrowserSearchService

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Q1 2012

People

(Reporter: kmag, Assigned: basta)

Details

(Whiteboard: [ReviewTeam])

Add-ons are not allowed to change the default or active search engine without user consent, but as doing so can be a significant revenue source, a lot of add-ons try it. As the change is easy to overlook, it would be nice to have it flagged. I'd settle for marking the properties dangerous, though I'd really prefer to only flag assignments (which I don't think we have infrastructure for yet).
Assignee: nobody → mbasta
Component: Admin/Editor Tools → Developer Pages
Priority: -- → P3
QA Contact: admin-tools → developers
Whiteboard: [required amo-editors]
Target Milestone: --- → Q3 2011
Fortunately, we have the "overwritable" property. I might need to make some tweaks, but it will effectively let the validator generate "Global Overwrite" warnings when currentEngine/defaultEngine are assigned a value. It's not a great solution, but it should at least provide some level of alert.
Target Milestone: Q3 2011 → Q1 2012
FWIW, .defaultEngine is readonly, so it can't be usefully set from JS anyways.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Reclassifying editor bugs and changing to a new whiteboard flag. Spam, spam, spam, spam...
Whiteboard: [required amo-editors] → [ReviewTeam]
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.