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

NEW
Unassigned

Status

()

5 years ago
5 years ago

People

(Reporter: ttaubert, Unassigned)

Tracking

Trunk
x86_64
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

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