Closed
Bug 2060862
Opened 1 month ago
Closed 29 days ago
Prevent `:has()` usage on the main window
Categories
(Firefox :: Theme, defect)
Firefox
Theme
Tracking
()
RESOLVED
FIXED
155 Branch
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(1 file)
Maybe with an escape hatch for very well reasoned things. The size of the DOM of the main window is very varied depending on the number of open tabs etc, and :has() scales with that in a way it's not easy to optimize, see bug 2054065 for example.
There's virtually always a better way to do things.
| Assignee | ||
Comment 1•1 month ago
|
||
See bug 2054065 for an example of what we're trying to prevent.
Updated•1 month ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/50a7e859636a
https://hg.mozilla.org/integration/autoland/rev/6a147be2c1d7
Add a stylelint rule for :has(). r=dao,desktop-theme-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,webcompat-reviewers,urlbar-reviewers,omarg,twisniewski,nchevobbe,jsudiaman,Gijs
Pushed by smolnar@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/f1488191e1b5
https://hg.mozilla.org/integration/autoland/rev/66831b35241a
Revert "Bug 2060862 - Add a stylelint rule for :has(). r=dao,desktop-theme-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,webcompat-reviewers,urlbar-reviewers,omarg,twisniewski,nchevobbe,jsudiaman,Gijs" for causing lint failures @ aboutNetError.css
Comment 4•1 month ago
|
||
Backed out for causing lint failures @ aboutNetError.css
Backout link: https://hg.mozilla.org/integration/autoland/rev/66831b35241a2df3c4e2191f0475cfe621a39907
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/6fde85fcae9c
https://hg.mozilla.org/integration/autoland/rev/f06e1d57bf64
Add a stylelint rule for :has(). r=dao,desktop-theme-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,webcompat-reviewers,urlbar-reviewers,omarg,twisniewski,nchevobbe,jsudiaman,Gijs
| Assignee | ||
Updated•1 month ago
|
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 29 days ago
status-firefox155:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Updated•16 days ago
|
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in
before you can comment on or make changes to this bug.
Description
•