Open Bug 1982177 Opened 4 days ago Updated 4 days ago

Window creation fails to position correctly on high-resolution monitors with 200% system scaling.

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 141
defect

Tracking

()

UNCONFIRMED

People

(Reporter: men64064654390, Unassigned)

Details

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

Steps to reproduce:

Monitor resolution: 3200x2000
OS: Windows 11
System scaling: 200%
Firefox zoom: 100%

Run browser.windows.create({top: 1500, left: 2000, width: 100, height: 100}) in the developer tools console, then check the returned window properties.

Actual results:

The new window's top-left position is returned as 450, 750.
{
"id": 214,
"focused": true,
"top": 450,
"left": 750,
"width": 463,
"height": 127,
"incognito": false,
"type": "normal",
"state": "normal",
"alwaysOnTop": false,
"tabs": [
{
"id": 19,
"index": 0,
"windowId": 214,
"highlighted": true,
"active": true,
"attention": false,
"pinned": false,
"status": "loading",
"hidden": false,
"discarded": false,
"incognito": false,
"width": 399,
"height": 120,
"lastAccessed": 1754720938926,
"audible": false,
"autoDiscardable": true,
"mutedInfo": {
"muted": false
},
"sharingState": {
"camera": false,
"microphone": false
},
"successorTabId": -1,
"groupId": -1,
"cookieStoreId": "firefox-default"
}
]
}

Expected results:

The new window's top-left position should be returned as 750, 1000.
{
"id": 214,
"focused": true,
"top": 750,
"left": 950,
"width": 463,
"height": 127,
"incognito": false,
"type": "normal",
"state": "normal",
"alwaysOnTop": false,
"tabs": [
{
"id": 19,
"index": 0,
"windowId": 214,
"highlighted": true,
"active": true,
"attention": false,
"pinned": false,
"status": "loading",
"hidden": false,
"discarded": false,
"incognito": false,
"width": 399,
"height": 120,
"lastAccessed": 1754720938926,
"audible": false,
"autoDiscardable": true,
"mutedInfo": {
"muted": false
},
"sharingState": {
"camera": false,
"microphone": false
},
"successorTabId": -1,
"groupId": -1,
"cookieStoreId": "firefox-default"
}
]
}

Summary: Window creation fails to position correctly on high DPI monitors → Window creation fails to position correctly on high-resolution monitors with 200% system scaling.
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.