Closed Bug 904353 Opened 12 years ago Closed 2 months ago

primaryScreen.GetRect() on a background process seems to return CSS pixels instead of device pixels

Categories

(Core :: Widget: Cocoa, defect)

x86_64
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1525379

People

(Reporter: ttaubert, Assigned: jaas)

Details

I noticed this problem on Mac where I do have a devicePixelRatio of 2.0. In the main process, there is: primaryScreen.GetRect() != primaryScreen.GetRectDisplayPix() When the same is called in a <browser remote=true> it returns different values where: primaryScreen.GetRect() == primaryScreen.GetRectDisplayPix()
> <browser remote=true> I don't know what this means. And "on a background process" is ambiguous. Does it just mean that Firefox isn't the currently focused app (doesn't currently have application focus)?
Sorry, I was talking about remote browsers. When a browser/tab is created with the remote attribute set to true then we create a separate process. Code running in that remote process returns the wrong screen size.
Severity: normal → S3
Assignee: nobody → jaas

I'm pretty sure this is bug 1525379, which is fixed now.

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