Closed Bug 652527 Opened 13 years ago Closed 12 years ago

Widgets can be added with same ID

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peregrino, Assigned: erikvvold)

Details

Attachments

(1 file)

Widgets can be added with the same ID if the ID is a falsy character, and get no warning nor error about being added with the same ID.
This doesn't affect much if the Widget is added to the addon-bar, but if you try to add a widget to the nav-bar (by modifying widget.js), a not very helpful error about some frame.docShell being undefined in the symbiont module appears.
Priority: -- → P3
Hardware: x86 → All
Target Milestone: --- → 1.0
(automatic reprioritization of 1.0 bugs)
Priority: P3 → P2
Target Milestone: 1.0 → 1.1
(Pushing all open bugs to the --- milestone for the new triage system)
Target Milestone: 1.1 → ---
Assignee: nobody → erikvvold
Status: NEW → ASSIGNED
Pointer to Github pull-request
Attachment #580694 - Flags: review?(poirot.alex)
(In reply to Erik Vold from comment #3)
> Created attachment 580694 [details]
> Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/299
> 
> Pointer to Github pull-request

This bug was resolved by https://github.com/mozilla/addon-sdk/commit/ca272b37d but there is no test for this use case, so my patch is simply adding a test.
Comment on attachment 580694 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/299

Looks good.
Thanks for this patch!
Attachment #580694 - Flags: review?(poirot.alex) → review+
Hum I was about to merge the pull request, but I have
Hum I was about to merge the pull request, but I have a doubt around "falsey".
Isn't it a typo for "falsy" ?
(In reply to Alexandre Poirot (:ochameau) from comment #7)
> Hum I was about to merge the pull request, but I have a doubt around
> "falsey".
> Isn't it a typo for "falsy" ?

It's not a word, and I see falsey used more than falsy on the web. It seems like it should be treated as 'likey' is afaict, but my english sucks =]
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/d4656a43201219bb87aa156aa0fd22e7b2256ef0
Merge pull request #299 from erikvold/bug-652527

bug 652527 adding test falsey widget ids r=@ochameau
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: