Some New Tab dialogs are transparent when the train-hop is applied to Firefox 158 and 159
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | unaffected |
| firefox158 | --- | unaffected |
| firefox159 | --- | unaffected |
| firefox160 | --- | fixed |
People
(Reporter: nina-py, Assigned: nina-py)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
Bug 2049387 moved the New Tab dialogs onto the new --dialog-* design tokens (D310155). Those tokens are defined in toolkit (D310151), so they first ship in Firefox 160. When the New Tab train-hop is applied to Firefox 158 or 159, the tokens are undefined and every declaration that uses them resets to its initial value.
Steps to reproduce:
- Apply the current New Tab train-hop to Firefox 158 or 159 and restart.
- Open a new tab and open one of the dialogs below.
Actual result:
- The "Delete from history" confirmation (
.confirmation-dialog) and the "Report" form (.report-content-form) have no background, border or shadow, so the page shows through them. - The Top Sites edit and topic selection modals (
.modalOverlayOuter) and the Weather opt-in dialog lose their border, corner radius and shadow.
Expected result:
The dialogs look as they did before bug 2049387.
Each --dialog-* reference in _ConfirmDialog.scss, ReportContent.scss, _ModalOverlay.scss and _Weather.scss needs a fallback to the value it replaced, marked @backward-compat { version 160 }. The D310155 review suggested these fallbacks.
Comment 1•28 days ago
|
||
Set release status flags based on info from the regressing bug 2049387
Comment 2•28 days ago
|
||
| frontend-triage | ||
The New Tab half of bug 2049387 (1e55d7ba988f) replaced the old values with bare --dialog-* references in _ConfirmDialog.scss, ReportContent.scss, _ModalOverlay.scss and Weather/_Weather.scss. Those tokens are only defined in tokens-shared.css from 160 on, so on 158/159 the declarations are invalid and the dialogs lose their background, border, radius and shadow. --border-width is older and is fine.
Fix: As comment 0 proposes, give each --dialog-* reference a fallback to the value it replaced (for example var(--dialog-background-color, var(--newtab-background-color-secondary))), with an @backward-compat { version 160 } note per train_hopping.md. The radius is the exception: the same patch deleted the .nova-enabled radius overrides, so one fallback to the old radius gets Nova wrong. Use var(--dialog-border-radius, var(--popup-border-radius)), which is what the toolkit token resolves to (and the newtab Nova token shim sets it), so 158/159 match 160 in both modes.
Suggested severity: S3. Every train-hopped 158/159 user gets see-through or unstyled New Tab dialogs that are harder to read but still work, and the patch blocks the 158 train-hop.
If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.
Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.
| Assignee | ||
Comment 3•28 days ago
|
||
Every --dialog-* reference in the New Tab dialog styles now has a
fallback, so the dialogs keep their background, border, corner radius
and shadow when the train-hop is applied to Firefox 158 and 159.
Bug 2049387 moved these dialogs onto the --dialog-* tokens, which
are available from Firefox 160 onwards.
Rather than restoring each dialog's old values, the fallbacks use the
--popup-* and --space-large tokens that the --dialog-* tokens
are built on. That way, Firefox 158 and 159 show the same dialogs as
Firefox 160, including the Nova radius and border. The fallbacks are
marked @backward-compat { version 160 }.
Updated•10 days ago
|
Description
•