Closed
Bug 1213620
Opened 9 years ago
Closed 9 years ago
DownloadsButton defined as const so extensions can't access it
Categories
(Firefox :: Downloads Panel, defect)
Tracking
()
RESOLVED
FIXED
Firefox 44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: sparky, Assigned: sparky)
References
Details
(Keywords: addon-compat)
Attachments
(1 file)
1.12 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20151009030230
Steps to reproduce:
Trying to access DownloadsButton or window.DownloadsButton, from within an extensions XUL overlay, is undefined.
This prevents extension from interacting with the download panel anchor. For example, Status4Evar uses DownloadsButton to conditionally swap out the panel's anchor, which is not possible using DownloadsIndicatorView if "downloads-button" isn't on a toolbar.
Other components of the download button/indicator/panel use XPCOMUtils.defineConstant or similar, but DownloadsButton does not.
Assignee | ||
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Fancy creating a patch?
Component: Untriaged → Downloads Panel
Flags: needinfo?(sparky)
Summary: DownloadsButton defined as const so extensions can't access → DownloadsButton defined as const so extensions can't access it
Assignee | ||
Comment 2•9 years ago
|
||
I suppose there's a first time for everything. I verified this my modifying my local omni.js instead of compiling, so hopefully that's sufficient.
Flags: needinfo?(sparky)
Updated•9 years ago
|
Assignee: nobody → sparky
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 3•9 years ago
|
||
Comment on attachment 8672419 [details] [diff] [review]
bug1213620-DownloadsButton-global.patch
Thanks, LGTM!
Attachment #8672419 -
Flags: review+
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
You need to log in
before you can comment on or make changes to this bug.
Description
•