about:profiles modal challenging to read in private mode
Categories
(Firefox :: Theme, defect)
Tracking
()
People
(Reporter: topotropic, Assigned: emz)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
When I'm in private mode and go to about:profiles and then want to create a new, the modal is in dark theme but the text color too, so it's challenging to read, see screenshot
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Most likely a regression of Bug 1749375. For Bug 1749377 we had to apply a fix for the pageInfo window that had similar issues.
| Assignee | ||
Comment 2•2 years ago
|
||
Emilio, do you know why the code we added in https://phabricator.services.mozilla.com/D136933 doesn't work here?
Comment 3•2 years ago
|
||
Set release status flags based on info from the regressing bug 1749375
| Assignee | ||
Comment 4•2 years ago
|
||
Oh sorry, this isn't actually an issue with widget code, but we need to set the colorscheme override in the profile wizard dialog too. I'll submit a patch.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 5•2 years ago
|
||
This is similar to the fix we did for Bug 1749377 where Page Info windows opened from PBM windows didn't apply the dark theme correctly.
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Paul does something like this work? Seems a bit nicer and more general:
diff --git a/docshell/base/BrowsingContext.cpp b/docshell/base/BrowsingContext.cpp
index 39192c1ae834c..b5efebe02882d 100644
--- a/docshell/base/BrowsingContext.cpp
+++ b/docshell/base/BrowsingContext.cpp
@@ -413,6 +413,11 @@ already_AddRefed<BrowsingContext> BrowsingContext::CreateDetached(
nsILoadInfo::OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP;
}
+ if (aOpener && !aParent) {
+ fields.Get<IDX_PrefersColorSchemeOverride>() =
+ aOpener->Top()->GetPrefersColorSchemeOverride();
+ }
+
fields.Get<IDX_HistoryID>() = nsID::GenerateUUID();
fields.Get<IDX_ExplicitActive>() = [&] {
if (parentBC) {
| Assignee | ||
Comment 7•2 years ago
•
|
||
Thanks, good idea! However it seems for both cert viewer and pageinfo window at that point aOpener isn't set. Not sure why.
It would probably also make sense to add a chrome check: aType == Type::Chrome
Comment 8•2 years ago
|
||
Probably need to deal with https://searchfox.org/mozilla-central/rev/b6b8ff043e944a5e32ea63208d3ba7cb6b16191d/docshell/base/BrowsingContext.h#488 too.
Does that work?
Updated•2 years ago
|
| Assignee | ||
Comment 9•2 years ago
|
||
I'm landing the frontend fix for now but I've filed Bug 1846500 to look into inheriting this flag in the BrowsingContext directly has discussed above.
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Set release status flags based on info from the regressing bug 1749375
Comment 12•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 13•2 years ago
|
||
Clearing NI since I currently don't have time to investigate further. But it seems like a good change, especially if we run into more of these chrome window opener cases.
Updated•2 years ago
|
| Assignee | ||
Comment 14•2 years ago
|
||
Is more S4-ish so not worth uplifting. Also about:profiles likely has quite low usage.
Updated•2 years ago
|
Comment 15•2 years ago
|
||
Reproduced the issue with Firefox 117.0a1 (2023-07-19) on MacOS 12 ARM. Indeed when using private mode to create a new profile from about:profiles, the modal and the text have no contrast between each other, both being displayed with dark colours.
The issue is verified fixed with Firefox 119.0a1 (20230830212731) and Firefox 118.0b2 (20230829180158) on MacOS 12 ARM. When using private mode to create a new profile from about:profiles, the modal and the text have contrast between each other making the text readable.
Description
•