Closed Bug 1408122 Opened 7 years ago Closed 5 years ago

Dark theme should apply dark colors to about:blank background to avoid white flashes

Categories

(Core :: DOM: Core & HTML, defect)

65 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla75
Tracking Status
firefox75 --- verified

People

(Reporter: jaws, Assigned: evilpie)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Whiteboard: [photon-visual][triage]
Bug 1402312 did not fix the about:blank case.
Blocks: 1402312
Status: RESOLVED → REOPENED
Depends on: 1444459
Resolution: DUPLICATE → ---
Summary: Dark theme should apply dark colors to the new tab page background as well as about:blank → Dark theme should apply dark colors to about:blank background to avoid white flashes
Version: Trunk → 65 Branch
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → DUPLICATE

Bug 1488384 is specifically about the white flashes due to #tabbrowser-tabpanels which is part of the underlying browser chrome. This bug is for theming the in-content about:blank page which is more closely related to Bug 1519547. Also since about:blank can be set as the new tab page it is not just an issue of white flashes (Bug 1471402).

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Priority: -- → P5

In case someone is interested in implementing this, about:blank is implemented in C++: https://searchfox.org/mozilla-central/source/netwerk/protocol/about/nsAboutBlank.cpp

Stylesheet needs to be added in two places for different parsing methods, direct about:blank pages use nsHTMLContentSink while indirect (eg about:newtab displaying about:blank) use Html5Parser and require the nsAboutBlank input stream to be filled.

See Also: → 1551040
Status: REOPENED → NEW

This seems like an interesting defect. Would I be able to attempt it?

This seems like an interesting defect. Would I be able to attempt it?

There's a patch attached to the bug with discussion in it, which reveals some of the unexpected complexities.

I've hidden the original description, because that was talking about [blank], which was "fixed" in bug 1488384, at least if the user has the OS dark theme enabled - a distinction that seems to be generating no end of confusion. Comment 2 then morphed this bug into being about about:blank. That should be clearer now.

Component: Theme → DOM: Core & HTML
Priority: P5 → --
Product: Firefox → Core
Blocks: 1608147
See Also: → 1610002

Is this still being reproduced?

(In reply to petcuandrei from comment #13)

Is this still being reproduced?

I'm still seeing it in Firefox Beta 73.0b6 (64-bit).

(In reply to petcuandrei from comment #13)

Is this still being reproduced?

Yes, it is! Nightly 74.0a1 (2020-01-20) (64-Bit).

See Also: 1610002
See Also: → 1611056
Assignee: nobody → ke5trel
Status: NEW → ASSIGNED

(In reply to OptionallyNamed from comment #20)

Another problem with dark theme is that the scrollbars become so dark that I cannot scroll pages. This is so counter-productive.

Please file a new bug for this.

Please file a new bug for this.

Please, file this bug for me because I am not a sofware enthusiast. please.

I think during the All Hands in Berlin you might have suggested to do this in nsPresContext::DefaultBackgroundColor,
but this seems a bit more targeted and not a header.

I haven't try tested this yet, so this more of a feedback?

Attachment #9062901 - Attachment is obsolete: true

(In reply to OptionallyNamed from comment #22)

Please file a new bug for this.

Please, file this bug for me because I am not a sofware enthusiast. please.

It would be helpful if you could provide a screenshot of what's wrong with the scrollbars on your side, because I'm not seeing this bug on macOS. I can't really file a bug without much context. Thanks :)

Flags: needinfo?(inyazserg)
Assignee: ke5trel → evilpies
Attachment #9128404 - Attachment description: Bug 1408122 - Apply prefer-color-scheme to top-level about:blank. r?emilio → Bug 1408122 - Apply prefers-color-scheme: dark to top-level about:blank. r?emilio
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d2722b645439 Apply prefers-color-scheme: dark to top-level about:blank. r=emilio,bzbarsky
Status: ASSIGNED → RESOLVED
Closed: 6 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Flags: qe-verify+
Regressions: 1622695

Reproduced the issue using an affected Nightly build from 2020-02-03, on macOS 10.14.

I have verified that the dark colors are successfully applied while the OS dark theme is enabled. Tested on macOS 10.14, Ubuntu 18.04 and Windows 10 x64, running Beta 75.0b7.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

I can still reproduce it in Firefox 75 on openSUSE Tumbleweed.

Blocks: 1634602

(In reply to Guo Yunhe from comment #28)

I can still reproduce it in Firefox 75 on openSUSE Tumbleweed.

Do you have privacy.resistFingerprinting enabled? Somebody opened bug 1634602 that this isn't working.

No longer blocks: 1634602
Flags: needinfo?(inyazserg) → needinfo?(i)
Blocks: 1634602

(In reply to Tom Schuster [:evilpie] from comment #29)

(In reply to Guo Yunhe from comment #28)

I can still reproduce it in Firefox 75 on openSUSE Tumbleweed.

Do you have privacy.resistFingerprinting enabled? Somebody opened bug 1634602 that this isn't working.

No, I don't.

Flags: needinfo?(i)
Attachment #9062901 - Attachment is obsolete: false

On mac, nightly 89, this still occurs.

Easy way to reproduce:
Holding command, click the down arrow next to any user on this page, then click "profile".
about:blank should open in a new tab with a white background, at least for a second or two before opening the profile page.

Yeah, that case is a bit harder, because that window has an opener (and thus is web-observable).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: