Remove MENUBAR_CAN_AUTOHIDE use from browser.css
Categories
(Firefox :: General, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: Gijs, Assigned: sclements)
References
Details
(Whiteboard: [fidefe-2022-mr1-css-linting] )
Attachments
(1 file)
There's already an ifdef for this in the markup: https://searchfox.org/mozilla-central/rev/78963fe42f8d5f582f84da84a5e78377b6c1fc32/browser/base/content/navigator-toolbox.inc.xhtml#19-23 .
The autohide
attribute is added/removed when the toolbar is made permanently visible by using the toolbox context menu to that effect.
The 4 selectors (in 3 blocks) that are behind this condition in browser.css
are all using autohide=true
or :not([autohide=true])
. The former can already never be true on OSes where we can't autohide the menubar; the latter of course can. The simplest way to make that rule not apply when it currently doesn't (ie on macOS) is probably to just add a canautohide
attribute on the toolbar inside the #ifdef
in the markup linked in the first paragraph, and then to add that to the selector.
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Backed out changeset ee9b7007dd66 (Bug 1752833) for causing bc failures CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=370963670&repo=autoland&lineNumber=35364
https://treeherder.mozilla.org/logviewer?job_id=370963129&repo=autoland&lineNumber=7314
https://treeherder.mozilla.org/logviewer?job_id=370962031&repo=autoland&lineNumber=4830
https://treeherder.mozilla.org/logviewer?job_id=370962296&repo=autoland&lineNumber=23386
Backout: https://hg.mozilla.org/integration/autoland/rev/70d91c58d788d995110dd126760c0628fbfa934c
Assignee | ||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
bugherder |
Description
•