Open Bug 904353 Opened 11 years ago Updated 2 years 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

()

People

(Reporter: ttaubert, Unassigned)

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
You need to log in before you can comment on or make changes to this bug.