Closed Bug 787834 Opened 12 years ago Closed 11 years ago

Add-on icon made from "widget" module can take focus, is draggable

Categories

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

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: smh377, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20100101 Firefox/10.0.7 Build ID: 20120826184008 Steps to reproduce: I'm making an add-on with the Jetpack SDK, and by following the simple directions, I've got an icon showing up in the add-on toolbar. In the simplest test case, this is what I've done: var widgets = require("widget"); var widget = widgets.Widget({ id: "my_icon", label: "My icon", contentURL: my_data.url("my-icon.jpg") }); Pretty simple stuff. When I fire up the addon with "cfx run", the icon is visible in the add-on bar as expected. Actual results: Now, the problem I'm running into is: Using the tab key to cycle through focusable elements on the page, my add-on icon is also one of those focusable elements--unlike all the other add-ons I've ever seen or used. I've also noticed that this icon can be dragged onto the bookmark toolbar, where it creates a bookmark to a resource:// url (with what looks like a link to the icon I'm using). Expected results: The add-on icon should *not* be able to take focus, or be dragged onto the bookmark toolbar.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Can we wontfix this in favor of the bug about adding toolbar buttons ?
Flags: needinfo?(dtownsend+bugmail)
If we're going to be using widgets in toolbars then no, probably not.
Flags: needinfo?(dtownsend+bugmail)
When Australis lands widget will be deprecated so we won't be working on this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.