New windows styled like private windows if the last active window was private
Categories
(Firefox :: Theme, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | unaffected |
| firefox161 | --- | wontfix |
| firefox162 | --- | fixed |
| firefox163 | --- | fixed |
People
(Reporter: scott, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Firefox 161.0 on macOS 27.2.1.
When opening a new window and a private window was the last one used, the new window is styled like a private window. i.e. on a fresh install with no customisations, no dark mode etc. the new regular window has the dark purple theme rather than the light grey theme.
Seems to happen regardless of the method used to open the new window: command+N, File > New Window, or from the dock's context menu.
I've run mozregression for this and I think this might have been fixed in Nightly, so apologies if I'm reporting something that's already been fixed.
Comment 1•6 days ago
|
||
| frontend-triage | ||
The mozregression range marks where this started rather than where it was fixed: it contains the bug 2087393 landing (relanded as 4b68fa31e3cd), and tip is unchanged. BrowsingContext.cpp still copies the private opener's dark scheme into the new window's prefersColorSchemeOverride, but LightweightThemeConsumer.sys.mjs now only writes the color-scheme meta tag and no longer resets that override to "none", so a normal window's light dark falls through to the inherited Dark in nsPresContext.cpp.
Fix: In _update, reset browsingContext.prefersColorSchemeOverride to "none" for top-level windows (keeping the !parent guard), add a private-opener case via openNewBrowserWindow({ openerWindow: pbmWin }) to browser_ext_themes_pbm.js, and move this to Firefox :: Theme with regressed_by bug 2087393.
Suggested severity: S3. Any normal window opened from a private window looks private, which can mislead users about whether history is being kept; opening new windows from a normal window avoids it.
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.
| Reporter | ||
Updated•3 days ago
|
Comment 2•3 days ago
|
||
Set release status flags based on info from the regressing bug 2087393
:emilio, since you are the author of the regressor, bug 2087393, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 3•3 days ago
|
||
Can we tell the bot to check for dupes please? There's a patch up in bug 2098422.
Updated•1 day ago
|
Description
•