Opened 6 years ago

Closed 6 years ago

#6786 closed defect (fixed)

Clamp CSS media query for color and disable system colors

Reported by: mikeperry Owned by: mikeperry
Priority: High Milestone:
Component: Firefox Patch Issues Version:
Severity: Keywords: tbb-fingerprinting, interview
Cc: g.koppen@…, shondoit Actual Points: 7
Parent ID: Points:
Reviewer: Sponsor:

Description

We should reduce the resolution on the CSS media query for color or spoof it entirely.

I could see the clamp approach mapping existing possibilities to only two or three: greyscale, 8bit, and/or 24bit.

I could also see just lying and always saying 24bit.

Child Tickets

Attachments (1)

screen.html (15.8 KB) - added by mikeperry 6 years ago.
Copy of system color test script

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by gk

Cc: g.koppen@… added

Always saying 24bit sounds good to me.

comment:2 Changed 6 years ago by mikeperry

Cc: shondoit added
Priority: normalmajor
Summary: Clamp CSS media query for colorClamp CSS media query for color and disable system colors

It's also now apparently possible to query system colors directly through the HTML5 canvas:
http://eb0b428b.byethost7.com/screen.html

#6253 might be one way to block that, but there may be other vectors (like trial and error through direct DOMNode comparison).

Apparently, there are several prefs that already exist around Native/System color lookup. The main one seems to be ui.use_native_colors, but it is cached by the style system at startup (so you need a restart to test its effects, which is painful). I'm not sure exactly what effect it has yet.

Changed 6 years ago by mikeperry

Attachment: screen.html added

Copy of system color test script

comment:3 Changed 6 years ago by mikeperry

Keywords: interview added

comment:4 Changed 6 years ago by mikeperry

Actual Points: 7
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.