Black pixel line above Firefox window - Windows 11 64-bit
Categories
(Core :: Graphics, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr128 | --- | unaffected |
| firefox134 | --- | wontfix |
| firefox135 | --- | wontfix |
| firefox136 | --- | wontfix |
| firefox137 | --- | wontfix |
People
(Reporter: paul, Unassigned)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, regressionwindow-wanted)
Attachments
(10 files)
|
52.94 KB,
image/jpeg
|
Details | |
|
95.85 KB,
text/plain
|
Details | |
|
10.83 KB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
66.21 KB,
text/plain
|
Details | |
|
65.10 KB,
image/png
|
Details | |
|
120.96 KB,
image/png
|
Details | |
|
61.97 KB,
image/png
|
Details | |
|
160.96 KB,
text/plain
|
Details | |
|
65.01 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Steps to reproduce:
Hi,
Some time around version 132 a black pixel line appeared above the Firefox window.
Actual results:
It only appears when the bookmarks/history sidebar is switched on. Disabling hardware acceleration gets rid of it full stop. Obviously would prefer to have both of these in use!
Resetting profile and getting rid of all add-ons failed to solve it.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
Can you go to the URL about:support and click "Copy raw data to clipboard" and come back to this bug and click "Attach New File" and paste that into there? It would help to know which GPU driver is involved and whether any blocklist entries are triggering that affect how compositing works, so it's important to know where this bug might be.
Updated•1 year ago
|
Comment 4•11 months ago
|
||
Does this look like it could be your work on Windows widget + transparency changes?
Comment 5•11 months ago
|
||
I see this.
This is a 1px line at the top of Firefox window A that causes Firefox window B under it to be transparent, showing a 1px line from a non-Firefox Zoom window.
Sometimes when I drag a window, this begins, and often returns to normal after dropping the window. Sometimes though the 1px line alpha artifact persists, and I can see the content under that line change.
Updated•11 months ago
|
Comment 6•11 months ago
|
||
So... Maybe, or maybe some other theming change... It seems that we draw this border ourselves in some circumstances (here). I think we might need to do that unconditionally nowadays...
But would be good to get a regression range here if someone can reliably reproduce.
Comment 7•11 months ago
|
||
Comment 8•11 months ago
|
||
I have tried to reproduce this locally with no luck. Tried various combinations of resizing / moving windows on a clean profile, with and without mica enabled.
This decoration is supposed to be drawn by DWM and I'm on an insiders version on windows, so maybe it's a DWM bug that has been fixed upstream?
If someone can reproduce reliably:
- Can you run mozregression?
- Are there any non-default Windows appearance settings that might affect this? (thinking of accent color, or the "show accent color on window borders" bits).
- Can you see if the attached patch helps? https://treeherder.mozilla.org/jobs?repo=try&revision=8860307343d5587c9edb25b1309d0be75a64034b should have builds in a bit.
Changing round Windows 11 theme colours or enabling or disabling 'show accent color' makes no difference. Nor running Firefox on integrated GPU or nVidia or changing video drivers.
Only disabling hardware acceleration or hiding sidebar.
Comment 10•11 months ago
|
||
Any interesting DPI settings? So for you the steps to reproduce is just "open a new (non-maximized) window, press Ctrl+B (to show bookmarks sidebar)"?
If so, and if you could run mozregression following the steps from the link above, that'd be great. That'd allow us to see at least what changed on our end that caused this.
Comment 11•11 months ago
|
||
Ah, sorry I can see your DPI settings from the about:support data. So just a multi-monitor configuration with no scaling...
"Display0": "1920x1200@59Hz scales:1.000000|1.000000",
"Display1": "1920x1200@60Hz scales:1.000000|1.000000",
Comment 12•11 months ago
|
||
Can't repro with such a configuration either :(
Comment 13•11 months ago
|
||
Hi, I would like to submit my debug log too because I've been experiencing the exact same issue.
Comment 14•11 months ago
|
||
My example of the black window border line.
Comment 15•11 months ago
|
||
My example of all working fine when the sidebar (e.g. bookmarks) is closed.
Comment 16•11 months ago
|
||
Comment on attachment 9461589 [details]
Screenshot 2025-01-24 181951 Black line when bookmark sidebar is open.png
Hmm, the screenshot shows a missing border line (white / transparent) in the uploaded screenshot. I'm not sure why it's changed as the original screenshot shows the black line. Normally, if I interact with the tabs, URL bar, etc., the top border flashes and changes between the black one and no line at all, wheres the normal border color is dark grey.
Comment 17•11 months ago
|
||
Comment 18•11 months ago
|
||
Comment on attachment 9461589 [details]
Screenshot 2025-01-24 181951 Black line when bookmark sidebar is open.png
I've uploaded the same screenshot to a 3rd party website: https://imgur.com/a/Z0Pr7Gc
Comment 19•11 months ago
|
||
Attached please find my mogregression log.
The last bad "tested autoland build": 308329f23
The last good "tested autoland build": b0132e48226
The black border is constantly visible when the sidebar is open in the bad builds.
The black border flashes briefly upon opening or closing the sidebar, then then the border color goes back to the standard one in the good builds.
Comment 20•11 months ago
|
||
Thank you so much! Hmm, so that points to bug 1917458. Which means given the kind of change:
-
It's somewhat believable: showing the sidebar shows an iframe, though not a remote one, and I removed some CSS code that was in effect by default at the time.
-
But it probably just exposed the bug (specially since on "good" builds the bad border also shows up, just temporarily).
Given that, I'm curious if:
-
On a good build (just mozregression --launch 131 or so) this happens with the bookmarks toolbar always shown or never shown (right click on the titlebar -> Bookmarks Toolbar). That bug removed the code for the (then default) "only on new tab" mode.
-
This reproduces with the patch attached above (direct link).
-
If someone that can reproduce has the time, whether the "flashing bad border" is also a regression. That might point to the real root cause.
Comment 21•11 months ago
|
||
Set release status flags based on info from the regressing bug 1917458
| Reporter | ||
Comment 22•11 months ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)
I have tried to reproduce this locally with no luck. Tried various combinations of resizing / moving windows on a clean profile, with and without mica enabled.
This decoration is supposed to be drawn by DWM and I'm on an insiders version on windows, so maybe it's a DWM bug that has been fixed upstream?
If someone can reproduce reliably:
- Can you run mozregression?
- Are there any non-default Windows appearance settings that might affect this? (thinking of accent color, or the "show accent color on window borders" bits).
- Can you see if the attached patch helps? https://treeherder.mozilla.org/jobs?repo=try&revision=8860307343d5587c9edb25b1309d0be75a64034b should have builds in a bit.
Hi Emilio, how do I run the patch?
Comment 23•11 months ago
|
||
Download this zip, unzip it somewhere and run the firefox.exe there.
Updated•11 months ago
|
| Reporter | ||
Comment 24•11 months ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #23)
Download this zip, unzip it somewhere and run the
firefox.exethere.
Thanks Emilio. Have same issue running the firefox.exe contained within zip file.
Comment 25•11 months ago
|
||
Ok, good to know / slightly unfortunate. I think I got to reproduce at some window widths on my old windows laptop. This is on an outdated Windows tho, will try to repro after updates and such.
I'm a bit fascinated at how could the sidebar be at play here tbh.
Comment 26•11 months ago
|
||
On that laptop I get this regression range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0799fad6d9ec5b5b1055fdbe4958d56fb561eb03&tochange=580e44ff9279ba88e3d4294621269ff8f4f23c20
Which includes bug 1671252...
Comment 27•11 months ago
|
||
Though arguably that isn't in effect with this configuration, so maybe some of the other graphics changes in that pushlog?
I think this has to do with some graphics stuff tho, not sure how exactly the sidebar tweaks it (maybe it changes how webrender layerizes stuff or something), but I don't think any layout size that matters here changes.
Comment 28•11 months ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #20)
Thank you so much! Hmm, so that points to bug 1917458. Which means given the kind of change:
It's somewhat believable: showing the sidebar shows an iframe, though not a remote one, and I removed some CSS code that was in effect by default at the time.
But it probably just exposed the bug (specially since on "good" builds the bad border also shows up, just temporarily).
Given that, I'm curious if:
On a good build (just mozregression --launch 131 or so) this happens with the bookmarks toolbar always shown or never shown (right click on the titlebar -> Bookmarks Toolbar). That bug removed the code for the (then default) "only on new tab" mode.
This reproduces with the patch attached above (direct link).
If someone that can reproduce has the time, whether the "flashing bad border" is also a regression. That might point to the real root cause.
Hi Emilio,
Thank you for your reply.
I have tested the bookmarks toolbar settings on a good build.
mogregression-gui > Select "Run a single build" -> Select "Build from: 131". Keep all other settings as is. That launched the following version:
2025-01-27T18:12:16.509000: INFO : application_buildid: 20240902214955
2025-01-27T18:12:16.509000: INFO : application_changeset: e8cf043939ae46485e1f683456c399b124b688cd
2025-01-27T18:12:16.509000: INFO : application_display_name: Firefox Nightly
2025-01-27T18:12:16.509000: INFO : application_id: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
2025-01-27T18:12:16.509000: INFO : application_name: Firefox
2025-01-27T18:12:16.509000: INFO : application_remotingname: firefox-nightly
2025-01-27T18:12:16.509000: INFO : application_repository: https://hg.mozilla.org/mozilla-central
2025-01-27T18:12:16.509000: INFO : application_vendor: Mozilla
2025-01-27T18:12:16.509000: INFO : application_version: 132.0a1
2025-01-27T18:12:16.509000: INFO : platform_buildid: 20240902214955
2025-01-27T18:12:16.509000: INFO : platform_changeset: e8cf043939ae46485e1f683456c399b124b688cd
2025-01-27T18:12:16.509000: INFO : platform_repository: https://hg.mozilla.org/mozilla-central
2025-01-27T18:12:16.509000: INFO : platform_version: 132.0a1
The findings are as follows:
- When the Bookmarks Toolbar is set to either "Always Shown" or "Never Show", then the black border is always present when the sidebar (e.g. bookmarks) is open. The top border is fine when the sidebar is closed.
- When the Bookmarks Toolbar is set to "Only Show on New Tab", then it depends on the type of a tab:
- On a new tab, the black border flashes very briefly upon closing the sidebar.
- On a non-new tab, the black border is always present when the sidebar is open.
I would also like to note that I have tried the bisection tool a few more times. Each time it led to slightly different build numbers for the good and bad builds. For example, even a build from early January 2023 has the same issue. I would also like to mention that I've first noticed the issue when I upgraded from Windows 11 23H2 to 24H2 in October 2024. I am wondering if the issue might be related to some changes in Windows 11 24H2.
Comment 29•11 months ago
|
||
I am wondering if the issue might be related to some changes in Windows 11 24H2.
That would be consistent with my observation of it not being reproducible on windows insiders (comment 8)
Comment 30•11 months ago
|
||
Set release status flags based on info from the regressing bug 1917458
Comment 31•11 months ago
|
||
I have updated Firefox to 135.0 (stable) earlier today. It seems like the black line is gone. It does not flash when upon opening and/or closing the sidebar, e.g. "bookmarks", either.
Comment 32•11 months ago
|
||
Upon further testing, I can no longer replicate the issue with the older versions on mozregression. All versions now appear to be working just fine. Interestingly, I haven't made any changes to my PC in the past few days. Firefox 134.0.2 (stable) was still displaying the black line as recently as 4 February 2024. And as of today, everything suddenly works fine.
Most recent updates:
- Windows 11 24H2 update "KB5050094 (OS Build 26100.3037)" was installed on 29 January 2025.
- NVIDIA GPU Driver 572.16 was installed on 30 January 2025.
- Firefox 135.0 (stable) was installed on 5 February 2025.
I specifically tested Firefox after updating both Windows and GPU drivers. The black line persisted in Firefox 134.0.2 after each update.
Can it be that something was fixed in Firefox 135.0, which also gets picked up by mozregression? Alternatively, it's possible that my PC has received one of those "gradual rollout" features and/or improvements from the Windows updates, which fixed an underlying issue there. I'm not sure how that could be checked, though.
I have attached an updated 'about:support' file based on the recent updates. This may help identify changes that could have potentially led to the sudden fix.
| Reporter | ||
Comment 33•11 months ago
|
||
(In reply to auris123[:nickname] from comment #32)
Created attachment 9464207 [details]
firefox_135_0_0_about_support_raw_data_extracted_20250205.txtUpon further testing, I can no longer replicate the issue with the older versions on mozregression. All versions now appear to be working just fine. Interestingly, I haven't made any changes to my PC in the past few days. Firefox 134.0.2 (stable) was still displaying the black line as recently as 4 February 2024. And as of today, everything suddenly works fine.
Most recent updates:
- Windows 11 24H2 update "KB5050094 (OS Build 26100.3037)" was installed on 29 January 2025.
- NVIDIA GPU Driver 572.16 was installed on 30 January 2025.
- Firefox 135.0 (stable) was installed on 5 February 2025.
I specifically tested Firefox after updating both Windows and GPU drivers. The black line persisted in Firefox 134.0.2 after each update.
Can it be that something was fixed in Firefox 135.0, which also gets picked up by mozregression? Alternatively, it's possible that my PC has received one of those "gradual rollout" features and/or improvements from the Windows updates, which fixed an underlying issue there. I'm not sure how that could be checked, though.
I have attached an updated 'about:support' file based on the recent updates. This may help identify changes that could have potentially led to the sudden fix.
I'm still having the issue with all of the above updates i.e. W11 update KB5050094, nVidia 772.16 drivers, FF 135.0
Updated•11 months ago
|
Comment 34•10 months ago
|
||
@ahale will try to repro on NV, and I will try to repro because I have done so in the past.
| Reporter | ||
Comment 35•10 months ago
|
||
Seems to have fixed itself today. There's been no known changes to my system. Was on FF version 135.0.1.
How odd!
Comment 36•10 months ago
|
||
(In reply to Paul from comment #35)
Seems to have fixed itself today. There's been no known changes to my system. Was on FF version 135.0.1.
How odd!
Nice! And yeah, that was exactly my experience a few weeks back too.
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•9 months ago
|
Description
•