Closed Bug 1600542 Opened 5 years ago Closed 2 years ago

Remove XUL special-case code from CSS Grid layout

Categories

(Core :: Layout: Grid, task, P3)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: dholbert, Assigned: emilio)

References

Details

Attachments

(4 files)

In bug 1593060, I'm planning on adding some special case code for CSS grid items that happen to be XUL content (for some cases where we're swapping in CSS grid in our still-mostly-XUL-for-now Firefox frontend code).

I'm filing this followup to remove that special case once it's no longer needed (i.e. once we've removed all XUL frontend code, or at least all XUL elements that are CSS grid items).

Depends on: 1600543
Type: defect → task

With bug 1606130 which seems to be solving a number of issues, I made a try push with the special case backed out: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9b90dc1bb4e04f0ddc043d09645d35bb833ff06b to check whether the workaround is still needed.

Bugs to test: bug 1603397, bug 1593060, potentially other XUL layout removal/dialog related bugs

Bug 1606130 doesn't solve bug 1593060, so the special case can't be backed out atm :)

Does bug 1525737 remove all the XUL grid use cases in front-end code that the special case in grid container can be removed?

This bug is orthogonal to bug 1525737, I think.

It looks like bug 1525737 removed XUL grid, but that doesn't make this bug actionable. This bug has to do with a special-case for XUL content inside of a CSS grid (which is a scenario that became more common as we removed XUL grid, since the straightforward migration path was to replace the XUL grid with a CSS grid)

So: this bug isn't actionable until we have zero cases of XUL content inside of a CSS grid. We could discover whether that's the case by e.g. adding a fatal assert inside the IsXULBoxFrame()-guarded chunk of https://phabricator.services.mozilla.com/D54886, and seeing if that assert fires during tests & a thorough exercising of our UI.

Severity: normal → S3
Severity: normal → S3

We have no more grid items being XUL boxes.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Just minor nit I noticed while going through the code.

Depends on D172873

The only XUL frames that remain are either scrollbars, or leafs. These are uses
that I'm pretty sure are no longer needed. There are a few others that will go
in the future.

Depends on D172874

We no longer have any use of it.

Depends on D172875

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd9c32d42c40 Remove no longer used nsGridContainerFrame special-case. r=layout-reviewers,tlouw https://hg.mozilla.org/integration/autoland/rev/015c2b52fcc2 Remove redundant parens in ReflowInput. r=layout-reviewers,tlouw
Keywords: leave-open
Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2c7c6b3737aa Remove a few other no longer reachable XUL box special-cases. r=TYLin
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: