Closed
Bug 1509388
Opened 7 years ago
Closed 6 years ago
Build download-subview-toolbarbutton markup directly using JS
Categories
(Firefox :: Downloads Panel, task, P1)
Firefox
Downloads Panel
Tracking
()
RESOLVED
FIXED
Firefox 66
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: ntim, Assigned: Paolo)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
The markup [0] seems small enough that it could be constructed directly in its only(?) [1] use site.
[0]: https://searchfox.org/mozilla-central/rev/876022232b15425bb9efde189caf747823b39567/browser/components/downloads/content/download.xml#15
[1]: https://searchfox.org/mozilla-central/rev/876022232b15425bb9efde189caf747823b39567/browser/components/downloads/DownloadsSubview.jsm#371
| Assignee | ||
Comment 1•7 years ago
|
||
If I remember correctly, the problem with this binding is extends="#button-base", which currently bypasses display="xul:button" from the "toolbarbutton" binding. Restoring the button CSS frame causes issues with the hover state on the inner action button.
In fact, we may have to solve this bug before we force a button frame on all "toolbarbutton" elements for bug 1450652. It may be that we have to use a different tag.
Blocks: 1450652
| Assignee | ||
Comment 2•6 years ago
|
||
Download items in the Downloads Subview of the Library Panel are implemented using a XBL binding that is associated to a "toolbarbutton" element, but inherits from "button-base" in order to avoid the display="xul:button" of the "toolbarbutton" binding. This is because the item contains an inner button, and using a button CSS frame for the outer element would break hover behavior and mouse events.
This changes the binding so it doesn't use a "toolbarbutton" element, which is a different way to avoid the outer button CSS frame, and eventually allows removing support for the "display" attribute in XBL.
| Assignee | ||
Comment 3•6 years ago
|
||
This makes this derived class of DownloadElementShell more similar to DownloadsViewItem, and removes batch fagment handling because proper XBL construction requires elements to be connected to the document before they are accessed from JavaScript.
Depends on D14572
| Assignee | ||
Updated•6 years ago
|
Assignee: nobody → paolo.mozmail
Status: NEW → ASSIGNED
Priority: -- → P1
| Assignee | ||
Comment 4•6 years ago
|
||
Pushed by paolo.mozmail@amadzone.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fe181f5f1a96
Part 1 - Don't use a toolbarbutton element for the download-subview-toolbarbutton binding. r=Gijs
https://hg.mozilla.org/integration/mozilla-inbound/rev/60ca811184a3
Part 2 - Build download-subview-toolbarbutton markup directly using JS. r=mak
Comment 6•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fe181f5f1a96
https://hg.mozilla.org/mozilla-central/rev/60ca811184a3
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
| Reporter | ||
Updated•6 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•