Closed Bug 658017 Opened 13 years ago Closed 13 years ago

Flag the chrome namespace 'godlikea'

Categories

(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
6.0.12

People

(Reporter: kmag, Assigned: basta)

Details

(Whiteboard: [required amo-editors][patch][needs review])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110419 Firefox/6.0a1
Build Identifier: 

I thought I'd reported this ages ago, but apparently not.

There's a web tutorial for a simple add-on which encourages users to copy its template and make certain modifications. Among those modifications is not, however, the chrome namespace. As a result, we've received several dozen submissions that all use the nonsensical chrome namespace 'godlikea'.

It would be a good idea to flag any specifications of that namespace in chrome.manifest. I think this should probably be a hard error. It might be a good idea to have a banned namespaces list, and include this along with 'modules' as introduced in a previous bug.

Reproducible: Always
Assignee: nobody → mbasta
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Whiteboard: [required amo-editors]
Target Milestone: --- → 6.0.12
What is the error message?
Shouldn't matter much, so long as it says that the namespace is banned. Whatever the current error message for the 'modules' namespace is should do. I guess I'd go with something like “The namespace '%s' is banned. Please choose a namespace unique to your add-on.”
I think it should be something like: "The 'godlikea' chrome namespace is generated from a template and should be replaced with something unique to your add-on to avoid name conflicts."
Whiteboard: [required amo-editors] → [required amo-editors][patch][needs review]
Merged:

https://github.com/mozilla/amo-validator/commit/04e51eec87b4fd491b618ac124dfe23583732c88
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Filed bug 661279

chrome namespace 'godlikea' will cause the validation to fail.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: