some chrome code may be incorrectly receiving spoofed devicePixelRatio

NEW
Unassigned

Status

()

defect
4 years ago
4 months ago

People

(Reporter: arthur, Unassigned)

Tracking

(Blocks 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fingerprinting])

:khuey points out in bug 418986, comment 69, that some chrome code may be incorrectly receiving false devicePixelRatio values when privacy.resistFingerprinting is active.

We need to figure out if these calls should be getting the spoofed or true value, and fix if necessary.
If it turns out these calls should not be spoofed, then one possible fix is to apply the following patch:
https://github.com/arthuredelstein/tor-browser/commit/4c316cacb6383c9b60606630ef331301fa51da10
and use nsDOMWindowUtils::GetScreenPixelsPerCSSPixel(...) instead of nsIDOMWindow::GetDevicePixelRatio(...) from chrome code.
Component: DOM → DOM: Core & HTML
Whiteboard: [fingerprinting]
You need to log in before you can comment on or make changes to this bug.