Closed Bug 671274 Opened 13 years ago Closed 13 years ago

created 2 addons with builder. both add an item to context-menu. clicking either one does same action though.

Categories

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

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: noitidart, Assigned: adw)

Details

(Whiteboard: fixed by bug 669475)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330

Steps to reproduce:

created 2 addons with builder. first addon i finished then downloaded then installed. 2nd addon is in testing using the usual builder test button. both addons add an item to context-menu.
1st addon is here: https://builder.addons.mozilla.org/addon/1009452/latest/
2nd addon is here: https://builder.addons.mozilla.org/addon/1009591/latest/


Actual results:

clicking on either item launches the postMessage of the 2nd addon. there was a link in the tab i was in that opened a new window, i right clicked and tested, and now both menu items are launching the postMessage of the 1st addon.


Expected results:

menu item added by installed addon should launch its own postMessage. menu item added by the addon in testing should launch its own postMessage.
downloaded and installed both addons. same problem.
Attached patch patchSplinter Review
Thank you very much for reporting this.

The problem is that item IDs are not unique to module instances, but the click-handling code assumes they are.
Assignee: nobody → adw
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #545724 - Flags: review?(myk)
My pleasure :) So glad I could help. :)
Comment on attachment 545724 [details] [diff] [review]
patch

r=myk
Attachment #545724 - Flags: review?(myk) → review+
The patch for bug 669475 included the fix to this bug, so marking this bug as fixed.

Thanks again, noitidart.  If you notice any more problems, please don't hesitate to file more bugs.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: fixed by bug 669475
Target Milestone: --- → 1.1
My pleasure I cant wait to see builder out nice and perfect :)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: