Closed Bug 694634 Opened 15 years ago Closed 14 years ago

"extensions." preference branch warning is loud

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: davemgarrett, Unassigned)

References

Details

With bug 676815 Flagfox now gets a warning about using a "flagfox." root for its preferences without an "extensions." prefix. As stated in the bug, "old extensions have always been grandfathered in" and I don't plan on migrating everyone's prefs anytime soon (though I may do so eventually). Fair enough, I'm going to get a new warning on every upload, however 8 is a bit much. The (wrong) "Components" deprecation warning (bug 694628) is only noted once per file, so I'd like to request that this warning also be only once. Redundant warnings just make it harder to see potentially helpful warnings in the list. Also, the warning name, "'pref' function called in potentially dangerous manner" is a bit misleading. The complaint is about the possibility for a name conflict with the extension's prefs. I think something more to the point like "preference set with a potentially conflicting name" would make more sense.
NoScript gets well over 200 and I haven't heard Giorgo complaining. I think the current behavior is perfectly reasonable, especially given that older extensions, even though they are grandfathered in, are encouraged to migrate their pref branches.
Component: Admin/Editor Tools → Add-on Validation
QA Contact: admin-tools → add-on-validation
I don't dispute that we should eventually migrate and the warning should be there, just that one warning listing all the instances in one would be much easier to read than one per line. As I've said elsewhere before, both editors and developers won't notice the important things in there if there's too much noise.
Jorge: please clarify if there is something to do in this bug. Thanks.
There's nothing to do for this particular bug. There are two complaints here that apply for the validator overall: (1) similar warnings can't be grouped and collapsed, and (2) warning messages are generic and can be misleading. Those would require redesigning how the validator handles warnings, and I don't much happening in this area until we have someone working full time on it again.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.