Open Bug 1528747 Opened 5 years ago Updated 3 months ago

White Bar Around Window On Secondary Monitor - Scaling Issue

Categories

(Core :: Graphics, defect, P3)

65 Branch
Desktop
Windows 10
defect

Tracking

()

Tracking Status
firefox93 --- affected
firefox94 --- affected
firefox95 --- affected

People

(Reporter: nickkmett, Unassigned, NeedInfo)

References

Details

Attachments

(5 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

I have a secondary 1080p monitor (Dell P2419h) connected to my Dell XPS 15 9560 with 4k panel. When using my secondary 1080p monitor, I have it set as my primary monitor and use my laptop (4k) as the secondary monitor.

With this setup, I then move a Firefox window over to the secondary laptop monitor and maximize it.

Actual results:

When using Firefox on the secondary (laptop, 4k) monitor, a white bar around the sides and bottom of the full-screen window appears. Moving the window over to the 1080p external primary monitor and maximizing it does not result in the white bars. It only occurs on the secondary laptop monitor. The white bars are only visible when the window is maximized

Expected results:

When using the maximized window on the secondary laptop 4k panel, there should be no white bars.

OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop

Moving to Core: Layout component, please correct if this can be placed in a better category.

Component: Untriaged → Layout
Product: Firefox → Core

Maybe sotaro has ideas? This is either Graphics or Widget: Win32.

Component: Layout → Graphics
Flags: needinfo?(sotaro.ikeda.g)

Content size is calculated at WM_NCCALCSIZE message handling. It might be related.

https://searchfox.org/mozilla-central/source/widget/windows/nsWindow.cpp#5061

I tried to reproduce it locally, but I could not reproduce it.

Flags: needinfo?(sotaro.ikeda.g)

I am too experiencing the white-bar-around-the-maximized-window problem with a single 4k monitor, Windows 10 and Firefox 65.0.1. User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

It seems that this problem has been around for a while: https://support.mozilla.org/en-US/questions/1197359

For me, a GPU driver update seemed to trigger it.

A screenshot: https://i.imgur.com/cNdZ1ly.png

See Also: → 1530045

(In reply to nickkmett from comment #0)

Created attachment 9044627 [details]
Firefox_WhiteBar_annotated.jpg

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0)
Gecko/20100101 Firefox/65.0

Steps to reproduce:

I have a secondary 1080p monitor (Dell P2419h) connected to my Dell XPS 15
9560 with 4k panel. When using my secondary 1080p monitor, I have it set as
my primary monitor and use my laptop (4k) as the secondary monitor.

With this setup, I then move a Firefox window over to the secondary laptop
monitor and maximize it.

Actual results:

When using Firefox on the secondary (laptop, 4k) monitor, a white bar around
the sides and bottom of the full-screen window appears. Moving the window
over to the 1080p external primary monitor and maximizing it does not result
in the white bars. It only occurs on the secondary laptop monitor. The white
bars are only visible when the window is maximized

Expected results:

When using the maximized window on the secondary laptop 4k panel, there
should be no white bars.

Has this always happened for you, or is it a new regression that just started happening?

If it's a new regression, can you try and use mozregression to see what change introduced this regression? [1]

[1] https://mozilla.github.io/mozregression/

Flags: needinfo?(nickkmett)
Priority: -- → P3

(In reply to Ryan Hunt [:rhunt] from comment #5)

(In reply to nickkmett from comment #0)

Created attachment 9044627 [details]
Firefox_WhiteBar_annotated.jpg

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0)
Gecko/20100101 Firefox/65.0

Steps to reproduce:

I have a secondary 1080p monitor (Dell P2419h) connected to my Dell XPS 15
9560 with 4k panel. When using my secondary 1080p monitor, I have it set as
my primary monitor and use my laptop (4k) as the secondary monitor.

With this setup, I then move a Firefox window over to the secondary laptop
monitor and maximize it.

Actual results:

When using Firefox on the secondary (laptop, 4k) monitor, a white bar around
the sides and bottom of the full-screen window appears. Moving the window
over to the 1080p external primary monitor and maximizing it does not result
in the white bars. It only occurs on the secondary laptop monitor. The white
bars are only visible when the window is maximized

Expected results:

When using the maximized window on the secondary laptop 4k panel, there
should be no white bars.

Has this always happened for you, or is it a new regression that just started happening?

If it's a new regression, can you try and use mozregression to see what change introduced this regression? [1]

[1] https://mozilla.github.io/mozregression/

As far as I know, it has always been an issue.

Flags: needinfo?(nickkmett)

¡Hola y'all, Sotaro, Emilio!

Happy 🌮 Thursday!

I believe I have a variant of this bug, but the white border is on the outside of the Nightly window.

Noticed this 1st on Nightly built from https://hg.mozilla.org/mozilla-central/rev/28be46661ce5b2e858b92549da73d3f8bacd1b20

I will attach a capture of the issue next.

Main display is 3440 x 1440, secondary is 1920 x 1080

I use https://docs.microsoft.com/es-es/windows/powertoys/fancyzones but the bug reproduces even when Microsoft PowerToys is off.

Should I file a new bug or confirm this one?

¡Gracias!
Alex

Flags: needinfo?(sotaro.ikeda.g)
Flags: needinfo?(emilio)
Attached image image.png

If you didn't see it until recently, can you run mozregression to try to figure out what broke it? In any case a new bug might be worth it.

Flags: needinfo?(emilio) → needinfo?(alex_mayorga)
Attached image image.png
Flags: needinfo?(alex_mayorga)
Attached image Bug in Firefox Release

¡Hola Emilio!

Thanks for looking into this, on further review the exact same bug reproduces on Release (please see comment 11) and Developer Edition (please see comment 12) for me, the white line is also visible on the preview when I Alt+Tab (please see comment 10) so I'm marking this bug as NEW and updating the flags FWIW.

Please let me know if anything further is needed from the device or profile.

¡Gracias!
Alex

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1614218
See Also: → 1609129

(In reply to alex_mayorga from comment #7)

¡Hola y'all!

Hope these lines find you well.

I can no longer reproduce the bug described on the comment on Nightly built from https://hg.mozilla.org/mozilla-central/rev/fed4cdeef415d8af09a2b212a80b92dfa086c986 , Developer nor Release on this OS:

Edition Windows 11 Pro
Version 21H2
Installed on ‎2022-‎01-‎10
OS build 22000.434
Experience Windows Feature Experience Pack 1000.22000.434.0

¡Hola Nick!

Hope these lines find you well.

Can you please check once and report back if the bug still reproduces for you?

If so, please share the OS details of your environment.

¡Gracias!
Alex

Flags: needinfo?(nickkmett)
Severity: normal → S3
See Also: → 1814482

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit auto_nag documentation.

Flags: needinfo?(nickkmett)

Commenting here as I am also experiencing this issue. FF windows have a white boarder (left, bottom, and right sides) when you bring the window back up after being minimized. The boarder goes away if you maximize or drag the window over and back from the scaled monitor.

FF version 122.0 64bit
Windows 10 22h2 19045.3930

3 monitors:

  1. 2560x1440, scaled 100%
  2. 3440x1440, (main), scaled 100%
  3. 3840x2160, scaled 225%

I have followed https://bugzilla.mozilla.org/show_bug.cgi?id=1483448 and https://bugzilla.mozilla.org/show_bug.cgi?id=1666929, but nothing really works. Compatibility mode is not checked. The only solution so far is to scale monitor #3 to 100%, but that makes it unusable (too tiny). I have also tried safe mode and completely reinstalling FF. Any help is appreciated.

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

Attachment

General

Creator:
Created:
Updated:
Size: