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)
Tracking
()
NEW
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()
Comment 1•11 years ago
|
||
> <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)?
Reporter | ||
Comment 2•11 years ago
|
||
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.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•