Closed Bug 1403951 Opened 7 years ago Closed 7 years ago

Browser window doesn't display when Dark/Light theme is enabled on Windows 10

Categories

(Firefox :: Theme, defect, P1)

x86_64
Windows 10
defect

Tracking

()

VERIFIED FIXED
Firefox 58
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- unaffected
firefox57 --- verified
firefox58 --- verified

People

(Reporter: alice0775, Assigned: dao)

References

Details

(Keywords: regression, Whiteboard: [reserve-photon-visual])

Attachments

(4 files)

[Tracking Requested - why for this release]: Completely broken, Browser window is missing. Reproducible : always Steps To Reproduce: 1. Enable Light Theme from addon manager 2. Restart Actual Results: No browser window display. Expected Results: Browser window should display properly
Your STR work fine for me on Windows 10 (and OSX). Can you elaborate more and e.g. include a screenshot? Can you use mozregression to find out when this started happening for you?
Flags: needinfo?(alice0775)
Blocks: 1366405
Summary: No browser window display when Light Theme is enabled → No browser window display when Light Theme is enabled after landing Bug 1366405
(In reply to Johann Hofmann [:johannh] from comment #1) > Your STR work fine for me on Windows 10 (and OSX). Can you elaborate more > and e.g. include a screenshot? Can you use mozregression to find out when > this started happening for you? Impossible to take screenshot because no browser window display. This is regressed by Bug 1366405
Flags: needinfo?(alice0775)
(In reply to Alice0775 White from comment #2) > (In reply to Johann Hofmann [:johannh] from comment #1) > > Your STR work fine for me on Windows 10 (and OSX). Can you elaborate more > > and e.g. include a screenshot? Can you use mozregression to find out when > > this started happening for you? > > Impossible to take screenshot because no browser window display. > This is regressed by Bug 1366405 Sorry, just to confirm, this is happening when you create a fresh profile and enable the Light Theme? And only after a restart? And it doesn't happen with dark theme? And "no browser window display" means your task bar is showing Firefox as active but there's no window open?
With new profile and enable Light theme and restart. I do not know about Dark Theme. Taskbar button display as expected, but no browser window display.
Ok, can you try dark theme please? Also, what's your Windows Theme? Are you showing accent colors in the title bar? What is your screen resolution and DPI setting?
Using any theme/appearance/persona in Mozilla Firefox Nightly 58.0a1 (2017-09-28) (64-bit) on Windows 7 (64-bit) makes minimize/maximize/close buttons missing and its place it's nonoperational, so they're not only not visible or hidden, just completely removed.
Nothing is displayed for me either on Windows 10 using the Dark Theme.
Bug Confirmed
Hmm, though I still can't reproduce this, the number of people chiming in makes me think we might back out bug 1366405 if we can't find a solution quickly. Dão, any thoughts?
Flags: needinfo?(dao+bmo)
Whiteboard: [photon-visual][triage]
I can reproduce. Working on it.
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Flags: needinfo?(dao+bmo)
Priority: -- → P1
Whiteboard: [photon-visual][triage] → [reserve-photon-visual]
Fuh, that's really unfortunate. There has to be some critical dependency in the code to paint a window after startup with light themes which depends on Bug 1366405. Browser itself starts, you can see it in the taskbar but without window there is nothing to do. The only workaround is to revert to the manually downloaded previous build and there change the theme.
Comment on attachment 8913269 [details] Bug 1403951 - Stop setting -moz-appearance: none; on :root for lightweight themes as it completely breaks the window when the Windows compositor is enabled. https://reviewboard.mozilla.org/r/184652/#review189824 ::: toolkit/themes/windows/global/global.css (Diff revision 1) > > /* ::::: miscellaneous formatting ::::: */ > > -:root:-moz-lwtheme { > - -moz-appearance: none; > -} I'm not sure that this rule ever did something useful on Windows. I think we always used to override it in browser.css in the compositor case, and in the non-compositor case it seems to be a no-op (briefly checked with aero basic).
Comment on attachment 8913269 [details] Bug 1403951 - Stop setting -moz-appearance: none; on :root for lightweight themes as it completely breaks the window when the Windows compositor is enabled. https://reviewboard.mozilla.org/r/184652/#review189826 Since you added this I trust you to remove it :)
Attachment #8913269 - Flags: review?(jhofmann) → review+
Wait, while this patch is probably fine as is (since it might be a no-op), the problem isn't perfectly fixed on my local build (turns out I can reproduce it on central). The window starts up fine with lw themes, but I get weird flickering and partial transparency everwhere else.
(In reply to Johann Hofmann [:johannh] from comment #20) > Wait, while this patch is probably fine as is (since it might be a no-op), > the problem isn't perfectly fixed on my local build (turns out I can > reproduce it on central). The window starts up fine with lw themes, but I > get weird flickering and partial transparency everwhere else. Everywhere else was supposed to mean that during browsing, random elements of the browser become transparent intermittently.
(Only on Windows 10)
Perhaps kind of same which Alice reported in bug 1403973 ?
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/56ca38c33b96 Stop setting -moz-appearance: none; on :root for lightweight themes as it completely breaks the window when the Windows compositor is enabled. r=johannh
(In reply to Dão Gottwald [::dao] from comment #19) > try build: > https://queue.taskcluster.net/v1/task/LbU-VmqeR7iWau3ANdD85w/runs/0/ > artifacts/public/build/target.zip I don't know, but doesn't seem to fix the issue for me, browser window is still not showing up... It is showing up with visual glitches when HWA is disabled however, but it is the same on latest Nightly
I think there's another problem in compacttheme.css. Investigating...
Keywords: leave-open
seeing this on win10 with latest nightly (can't get version number, because no windows)
¡Hola Pascal! Removed the theme reference as this bite me on the dark theme as well... Shall we tweet something from @FirefoxNightly? ¡Gracias! Alex
Flags: needinfo?(pascalc)
Summary: No browser window display when Light Theme is enabled after landing Bug 1366405 → No browser window display after landing Bug 1366405
Depends on: 1404016
I was using the dark theme when my Nightly updated and the application window would not show. Pressing F11 twice does allow the window to show though. Starting nightly with a new profile fixes the problem entirely for me.
(In reply to Dão Gottwald [::dao] from comment #32) > Try build with both fixes: > https://queue.taskcluster.net/v1/task/W5QhP09lQWSRzVzNCpRy-Q/runs/0/ > artifacts/public/build/target.zip Works for me!
Summary: No browser window display after landing Bug 1366405 → Browser window doesn't display when Dark/Light theme is enabled on Windows 10
Comment on attachment 8913305 [details] Bug 1403951 - Dark/Light themes shouldn't make the window transparent on Windows 10. https://reviewboard.mozilla.org/r/184676/#review189850 Fixes the problem for me, but I'd appreciate an explanation of the change :)
Attachment #8913305 - Flags: review?(jhofmann) → review+
I backed out bug 1366405 from m-c to make sure that this is fixed in the next round of Nightlies that we build later today. I'm happy to re-land it for you once the fixes from this bug hit autoland, Dao. Just let me know :) https://hg.mozilla.org/mozilla-central/rev/3177c1b64ffe7ba5c08851791bd495421dcedb05
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
(In reply to alex_mayorga from comment #30) > ¡Hola Pascal! > > Removed the theme reference as this bite me on the dark theme as well... > > Shall we tweet something from @FirefoxNightly? > > ¡Gracias! > Alex This is done, first 280 tweet + I recorded a video tutorial showing how to restart in safe mode and reset the theme to default https://twitter.com/FirefoxNightly/status/913452861161385986
Flags: needinfo?(pascalc)
(In reply to Dão Gottwald [::dao] from comment #32) > Try build with both fixes: > https://queue.taskcluster.net/v1/task/W5QhP09lQWSRzVzNCpRy-Q/runs/0/ > artifacts/public/build/target.zip Fixed all issues for me, browser is launching fine. One minor glitch however appears. Top browser border with light theme is white. There is no such problem with a dark theme or default theme. See https://s26.postimg.org/sr1zn6o5l/border.png
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1b728c9c1f45 Dark/Light themes shouldn't make the window transparent on Windows 10. r=johannh
Keywords: leave-open
If it's of any use, this also seems to affect Windows 7, and for my Windows 7 system on an i5-2400 iGPU, disabling hardware acceleration causes the browser to display, but window borders are missing and there is no animation upon dragging the window by the tab header (using Dark/Light theme of course).
(In reply to Nate Over from comment #41) > If it's of any use, this also seems to affect Windows 7, and for my Windows > 7 system on an i5-2400 iGPU, disabling hardware acceleration causes the > browser to display, but window borders are missing and there is no animation > upon dragging the window by the tab header (using Dark/Light theme of > course). Does it work with <https://queue.taskcluster.net/v1/task/W5QhP09lQWSRzVzNCpRy-Q/runs/0/artifacts/public/build/target.zip>? If not, could you please file a new bug?
Blocks: 1404074
No longer blocks: 1404074
(In reply to Dão Gottwald [::dao] from comment #42) > (In reply to Nate Over from comment #41) > > If it's of any use, this also seems to affect Windows 7, and for my Windows > > 7 system on an i5-2400 iGPU, disabling hardware acceleration causes the > > browser to display, but window borders are missing and there is no animation > > upon dragging the window by the tab header (using Dark/Light theme of > > course). > > Does it work with > <https://queue.taskcluster.net/v1/task/W5QhP09lQWSRzVzNCpRy-Q/runs/0/ > artifacts/public/build/target.zip>? If not, could you please file a new bug? It's fixed with that, thank you! But are you able to elaborate? Is the official Win64 download not developed with Windows 7 in mind? What was different about what you provided from what's default? I'm new to this so I apologize for anything that should be obvious. Thanks again.
Flags: needinfo?(dao+bmo)
It is developed with Win 7 in mind, but bug 1366405 introduced some side effects, which are being fixed in this bug. Dao just pointed you to the build which included fixes from this bug, which will be eventually available for everyone in the next Nightly or the one after that.
Flags: needinfo?(dao+bmo)
(In reply to Eddward from comment #44) > It is developed with Win 7 in mind, but bug 1366405 introduced some side > effects, which are being fixed in this bug. Dao just pointed you to the > build which included fixes from this bug, which will be eventually available > for everyone in the next Nightly or the one after that. Ah, I see. That makes sense. One other thing - it shows my Nightly build is now on the default update channel rather than the nightly one. What's this about? I'll still receive the nightly updates, or won't I?
Your regular Nightly build should be on the Nightly update channel. Default update channel are usually for developer builds such as the one provided by Dao.
Okay, so default means something other than I expected. Thank you.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
By the way, I experienced same symptoms on Windows 7, but only with Aero theme (basic and classic are not affected). I'll check with those fixes with tomorrow's build to be sure if this was the same cause and same effects of not.
Flags: qe-verify?
Flags: qe-verify? → qe-verify+
Is there test coverage that could be added that would have caught this?
Flags: needinfo?(dao+bmo)
(In reply to Ed Morley [:emorley] from comment #50) > Is there test coverage that could be added that would have caught this? No.
Flags: needinfo?(dao+bmo)
After today's update I was using the "Mightly" lightweight theme. When I restarted, the window did not show up. After getting back to a usable state, I went to Add-ons -> Themes, and enabled some of my other lightweight themes. I have found that some themes turn the window frame white, and those themes will render the invisible window on Nightly restart. Some of those themes: https://addons.mozilla.org/en-US/firefox/addon/abstracblue/ https://addons.mozilla.org/en-US/firefox/addon/aurora-australis/ https://addons.mozilla.org/en-US/firefox/addon/blue-bomb/ https://addons.mozilla.org/en-US/firefox/addon/frozen-wood/ https://addons.mozilla.org/en-US/firefox/addon/nightly/ I am using build ID 20170929100122
QA Contact: ovidiu.boca
(In reply to Dão Gottwald [::dao] from comment #51) > (In reply to Ed Morley [:emorley] from comment #50) > > Is there test coverage that could be added that would have caught this? > > No. Shouldn't mozscreenshots have caught this?
Flags: needinfo?(MattN+bmo)
(In reply to Sean Smith from comment #52) > After today's update I was using the "Mightly" lightweight theme. When I > restarted, the window did not show up. > > After getting back to a usable state, I went to Add-ons -> Themes, and > enabled some of my other lightweight themes. I have found that some themes > turn the window frame white, and those themes will render the invisible > window on Nightly restart. Can you please file a new bug? (In reply to Mike Conley (:mconley) (:⚙️) - Backlogged on reviews from comment #53) > (In reply to Dão Gottwald [::dao] from comment #51) > > (In reply to Ed Morley [:emorley] from comment #50) > > > Is there test coverage that could be added that would have caught this? > > > > No. > > Shouldn't mozscreenshots have caught this? I'm not sure if this kind of rendering quirk is visible to mozscreenshots, but either way -- we don't have automatic mozscreenshots alerts.
(In reply to Dão Gottwald [::dao] from comment #54) > (In reply to Sean Smith from comment #52) > > After today's update I was using the "Mightly" lightweight theme. When I > > restarted, the window did not show up. > > > > After getting back to a usable state, I went to Add-ons -> Themes, and > > enabled some of my other lightweight themes. I have found that some themes > > turn the window frame white, and those themes will render the invisible > > window on Nightly restart. > > Can you please file a new bug? > Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1404386 Thanks.
Tested on Mac OS X 10.12, Ubuntu 16.04 x64 and Windows 10 x64 using a Nightly build from 2017-09-28 and reproduced the initial issue(from the description) only on Windows 10 x64. Verified as fixed using the latest Nightly 58.0a1 (Build ID: 20171005220204) on Windows 10 x64. Verified also on Ubuntu 16.04 and Mac 10.12 with the latest Nightly 58.0a1.
I managed to repro this issue using an affected Nightly build (2017-09-28) with STR from comment 0. This is also verified fixed on Beta 57.0b6 (20171005195903) under Windows 10 x64.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
(In reply to Dão Gottwald [::dao] from comment #54) > (In reply to Mike Conley (:mconley) (:⚙️) - Backlogged on reviews from > comment #53) > > (In reply to Dão Gottwald [::dao] from comment #51) > > > (In reply to Ed Morley [:emorley] from comment #50) > > > > Is there test coverage that could be added that would have caught this? > > > > > > No. > > > > Shouldn't mozscreenshots have caught this? It may have if buildbot limitations didn't cause bug 1329262 to get backed out. Now that we fully switched mozscreenshots to TaskCluster I've relanded bug 1329262 so it could get caught in the future. > I'm not sure if this kind of rendering quirk is visible to mozscreenshots, > but either way -- we don't have automatic mozscreenshots alerts. We do have automatic mozscreenshots alerts going to the dev-ui-alerts list (https://www.mozilla.org/en-US/about/forums/#dev-ui-alerts) but I haven't publicized it widely since there are intermittent failures. Johann and I are the main ones who look at it though to triage and I haven't had time recently.
Flags: needinfo?(MattN+bmo)
(In reply to Matthew N. [:MattN] (PM if requests are blocking you) from comment #61) > > I'm not sure if this kind of rendering quirk is visible to mozscreenshots, > > but either way -- we don't have automatic mozscreenshots alerts. > > We do have automatic mozscreenshots alerts going to the dev-ui-alerts list > (https://www.mozilla.org/en-US/about/forums/#dev-ui-alerts) but I haven't > publicized it widely since there are intermittent failures. Johann and I are > the main ones who look at it though to triage and I haven't had time > recently. That's not quite as automatic as I meant, though. It's from mozilla-central and likely wouldn't have prevented this from hitting Nightly.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: