Open Bug 1625720 Opened 5 years ago Updated 3 years ago

Scope popup.css to menupopup and panel custom elements

Categories

(Toolkit :: Themes, task, P3)

task

Tracking

()

mozilla77
Tracking Status
firefox77 --- affected

People

(Reporter: ntim, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

This is actually surprisingly straightforward, given that both these CEs already use shadow DOM and most (if not all) external styling already uses shadow parts.

Priority: -- → P3
Depends on: 1625721
Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Blocks: 1632034
Blocks: 1632004
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/64f788053239 Scope popup.css to menupopup and panel custom elements. r=dao

https://treeherder.mozilla.org/#/jobs?repo=try&revision=91713493297963d8828f7911770ab2fd6c7dba41

It's not ideal, but this patch fixes the failure: https://hg.mozilla.org/try/rev/2b02c8ee22a6a1fc204a46e01f81a8b866490c82

I can't really tell if the failure was caused by the styling being applied too late (due to being loaded by the shadow root), or whether it was caused by the sole presence of the shadow DOM stylesheet in the panel custom elements. I'm guessing it's the former.

Either way, only the :host CSS rule is relevant to panels. The rest is of the popup.css stylesheet is only relevant to menupopup.

Dão, would you be ok with landing the patch I've linked above (or something similar) ?

Flags: needinfo?(dao+bmo)

Is the failure something that would affect real world users, or can we fix the test? Which of the properties you moved to xul.css is responsible for the failure? Can we move only that property instead of all?

Flags: needinfo?(dao+bmo)

(In reply to Dão Gottwald [::dao] from comment #6)

Is the failure something that would affect real world users, or can we fix the test?

I honestly don't know.

According to the logs, it seems to crash around: https://searchfox.org/mozilla-central/rev/41c3ea3ee8eab9ce7b82932257cb80b703cbba67/toolkit/content/tests/chrome/window_panel.xhtml#71-73
for the "noautohide panel with titlebar" test

Which of the properties you moved to xul.css is responsible for the failure? Can we move only that property instead of all?

This is a Windows-only failure so I'm guessing only moving over the Windows properties would work. The only thing I know is that the min-width property is not needed as comment 4 shows.

I don't have a Windows machine and my time is limited until the end of May, so I really don't have time to figure out which exact property is behind it.

Dão, would you be ok with only moving over the Windows properties except for min-width, just to fix the regressions ? I can file a follow up bug and needinfo Neil Deakin on it for the time being.

Flags: needinfo?(dao+bmo)

(In reply to Tim Nguyen :ntim from comment #7)

Which of the properties you moved to xul.css is responsible for the failure? Can we move only that property instead of all?

This is a Windows-only failure so I'm guessing only moving over the Windows properties would work. The only thing I know is that the min-width property is not needed as comment 4 shows.

Can you narrow it down further to one property? Shouldn't be a lot of effort with a series of parallel try pushes...

Flags: needinfo?(dao+bmo)
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9432b1bd3d98 Scope popup.css to menupopup and panel custom elements. r=dao
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2c0b3fa9021b Scope popup.css to menupopup and panel custom elements. r=dao
Flags: needinfo?(ntim.bugs)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77

(In reply to Tim Nguyen :ntim from comment #7)

Dão, would you be ok with only moving over the Windows properties except for min-width, just to fix the regressions ? I can file a follow up bug and needinfo Neil Deakin on it for the time being.

The ifdef should have been around the whole rule, and the comment should have referenced the bug you were going to file. Can you please do that?

Flags: needinfo?(ntim.bugs)
Regressions: 1634047

Hi Dão,

I'm currently busy with writing up my masters' thesis (related to conic gradients in Firefox), would you mind taking care of potential necessary follow ups for this bug ?

Cheers,
Tim

Flags: needinfo?(ntim.bugs) → needinfo?(dao+bmo)
Depends on: 1634865

Gonna have to back this out to address the regressions. Patch in bug 1634865.

Flags: needinfo?(dao+bmo)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: ntim.bugs → nobody
Status: REOPENED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: