Closed Bug 1793361 Opened 3 years ago Closed 6 days ago

window.screen reports invalid screensize on scaled screens on OS-X

Categories

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

Firefox 105
defect

Tracking

()

RESOLVED DUPLICATE of bug 1525379

People

(Reporter: tom.schindl, Assigned: jaas)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

I have a 3 screen setup:

  • MacBook Pro Retina Display - 1512x982 (default scale)
  • Large 2nd screen (main screen) - 3008x1692 (scaled)
  • Smaller 3rd screen - 1080x1920 (default scale - rotated by 90°)

and place the browser window on the right side of the main-screen.

Actual results:

If I position Firefox on the main screen on the right handside window.screen reports invalid sizes: 540x960 (see attached screenshot ff-wrong). If I move the window to the left of the screen the size is reported correctly 3008x1692 (see attached screenshot ff-correct).

As one can see the invalid size is half of the 3rd screen I think the browser thinks the window is on the 3rd screen.

Expected results:

The browser needs to report the correct size

Attached image ff-wrong.jpg
Attached image ff-correct.jpg

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P3
Assignee: nobody → jaas

This was fixed in bug 1525379. I can reproduce this in a build without that fix, I can't reproduce it in a build with the fix.

Status: UNCONFIRMED → RESOLVED
Closed: 6 days ago
Duplicate of bug: 1525379
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: