Closed Bug 1707328 Opened 3 years ago Closed 2 years ago

When moving a Firefox window from a 125% at 3840x2160 monitor to a 100% on 1920x1080 one the scaling gets out of whack

Categories

(Core :: Widget: Win32, defect, P3)

Firefox 88
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox89 --- affected
firefox90 --- affected
firefox91 --- affected

People

(Reporter: alex_mayorga, Unassigned)

Details

(Keywords: multi-monitors, nightly-community, Whiteboard: [win:multimonitors][win:sizing])

Attachments

(7 files)

Attached image image.png

¡Hola y'all!

I'm not well versed on scaling, pixel densities and all of that so I don't really know how to properly express what the exact bug here is. But there's a problem regardless.

If a Firefox/Developer/Nightly window is created on the 125% at 3840x2160 monitor and then moved to the 100% on 1920x1080 one everything stays oversized, both UI and the web content.

If I create the Firefox/Developer/Nightly window on the 100% on 1920x1080 monitor from the get go, the bug is not there.

Please see the file attached for a Nightly window with the bug on the left and without the bug on the right.

Please let me know if there's anything further information needed from the profile.

¡Gracias!
Alex

Attached image image.png

What this bug looks like on the 100% on 1920x1080 monitor on Nightly.

Attached image image.png

This is what this bug looks like in the 125% at 2160x3840 monitor on Nightly.

Attached image image.png

What this bug looks like on the 100% on 1920x1080 monitor side by side on Nightly and Edge.

Attached image image.png

This is what this bug looks like in the 125% at 2160x3840 monitor side by side on Nightly and Edge.

Component: Widget: Win32 → General

Hi Alex, thanks for reporting! I am not able to reproduce this here under Windows 10 (I have a setup with a primary laptop screen at 125% and an external monitor at 100% scaling). Does this still reproduce for you? Can you provide some more information about your setup? Like the report you get under "about:support" (or in the menu under help -> More Troubleshooting Information) ? Thank you for your support!

Flags: needinfo?(alex_mayorga)

Jim, which component should this go in?

Flags: needinfo?(jmathies)
Attached file about:support

¡Hola Jens!

I believe the bug has morphed a bit...

It seems that now it scales correctly but there are graphic artifacts as it is redrawing at the correct scale.

I'm pretty sure I'm getting all these terms incorrectly so I've recorded a video of the issue here:

https://www.screencast.com/t/uGxxXJfQ3SJn

Please let me know if there's anything further information needed from the profile.

¡Gracias!
Alex

Flags: needinfo?(alex_mayorga) → needinfo?(jstutte)

Thanks! Let's see if Jim can suggest a module here.

Flags: needinfo?(jstutte)
Attached image image.png

¡Hola y'all!

The scaling issue is back, please see the screen capture of the bug on 89, seems like when snapped to the side of a screen Firefox doesn't calculate the windows size correctly either.

If I Ctrl+N to create a new window from the broken one then the scaling looks fine and that new window snaps correctly.

Updating flags FWIW.

¡Gracias!
Alex

(In reply to alex_mayorga from comment #8)

¡Hola Jens!

I believe the bug has morphed a bit...

It seems that now it scales correctly but there are graphic artifacts as it is redrawing at the correct scale.

I'm pretty sure I'm getting all these terms incorrectly so I've recorded a video of the issue here:

https://www.screencast.com/t/uGxxXJfQ3SJn

Please let me know if there's anything further information needed from the profile.

¡Gracias!
Alex

That's not Firefox, we don't own the areas of the screen you're seeing the artifacts on, Windows does. I'd bet this is some sort of video driver bug specific to your system. (Note the bug might be triggered by something unique in the way we render our window!)

We've done some work with multi-monitor support over the last few months. I tested this as well and wasn't able to reproduce.

Severity: -- → N/A
Flags: needinfo?(jmathies)
Priority: -- → P3
Component: General → Widget: Win32
Keywords: multi-monitors
Severity: N/A → S2
Whiteboard: [win:multimonitors]
Severity: S2 → S3
Whiteboard: [win:multimonitors] → [win:multimonitors][win:sizing]

@alex_mayorga: We've done some work in this area more recently, as well. Does this bug present differently on the latest Firefox Nightly?

(I'm unable to reproduce on a current Nightly with one monitor at 175% and one at 100%.)

Flags: needinfo?(alex_mayorga)

¡Hola Ray!

Thanks so much for the work in this area.

I can no longer reproduce the issue I described on Nightly 107.0a1 (2022-10-07).

¡Gracias!
Alex

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(alex_mayorga)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: