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)

task

Tracking

()

RESOLVED FIXED
Firefox 66
Tracking Status
firefox66 --- fixed

People

(Reporter: ntim, Assigned: Paolo)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

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
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.
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: nobody → paolo.mozmail
Status: NEW → ASSIGNED
Priority: -- → P1
Blocks: 1515367
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
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: