-moz color property FP test
STR
- go to https://arkenfox.github.io/TZP/tzp.html#theend
- click on the
show perf & debugging - copypaste the
moz colorsresults and state FF version and OS
Looking to see if I can reduce the test to ~~ten~~ eleven items for FF102+ (to save ~1ms)
TIA ❤️
here's windows and android (RFP off): 11 items max in FF102+
-moz-mac-active-menuitem: rgb(0, 0, 0)
-moz-mac-active-source-list-selection: rgb(0, 0, 0)
-moz-mac-defaultbuttontext: rgb(0, 0, 0)
-moz-mac-menuitem: rgb(0, 0, 0)
-moz-mac-menupopup: rgb(0, 0, 0)
-moz-mac-source-list-selection: rgb(0, 0, 0)
-moz-mac-source-list: rgb(0, 0, 0)
-moz-mac-tooltip: rgb(0, 0, 0)
-moz-mac-vibrant-titlebar-dark: rgb(0, 0, 0) // dropped in 103+
-moz-mac-vibrant-titlebar-light: rgb(0, 0, 0) // dropped in 103+
macOS 12.4, assuming you want this tested with RFP off.
- Nightly104
- -moz-mac-active-menuitem: rgb(0, 122, 255)
- -moz-mac-active-source-list-selection: rgb(0, 122, 255)
- -moz-mac-defaultbuttontext: rgb(255, 255, 255)
- -moz-mac-menuitem: rgb(246, 246, 246)
- -moz-mac-menupopup: rgb(246, 246, 246)
- -moz-mac-source-list-selection: rgb(211, 211, 211)
- -moz-mac-source-list: rgb(246, 246, 246)
- -moz-mac-tooltip: rgb(246, 246, 246)
moz-mac-vibrant-titlebar-* gone as you expected.
- FF102
- -moz-mac-active-menuitem: rgb(0, 122, 255)
- -moz-mac-active-source-list-selection: rgb(0, 122, 255)
- -moz-mac-defaultbuttontext: rgb(255, 255, 255)
- -moz-mac-menuitem: rgb(246, 246, 246)
- -moz-mac-menupopup: rgb(246, 246, 246)
- -moz-mac-source-list-selection: rgb(211, 211, 211)
- -moz-mac-source-list: rgb(246, 246, 246)
- -moz-mac-tooltip: rgb(246, 246, 246)
- -moz-mac-vibrant-titlebar-dark: rgb(40, 40, 40)
- -moz-mac-vibrant-titlebar-light: rgb(230, 230, 230)
RFP shouldn't affect the results, try it
Nightly with RFP / stable with RFP / TB (minus the moz-mac-vibrant-titlebar-*)
- -moz-mac-active-menuitem: rgb(10, 100, 220)
- -moz-mac-active-source-list-selection: rgb(10, 100, 220)
- -moz-mac-defaultbuttontext: rgb(255, 255, 255)
- -moz-mac-menuitem: rgb(230, 230, 230)
- -moz-mac-menupopup: rgb(230, 230, 230)
- -moz-mac-source-list-selection: rgb(200, 200, 200)
- -moz-mac-source-list: rgb(247, 247, 247)
- -moz-mac-tooltip: rgb(247, 247, 247)
~~yup, I spoke too soon, they changed in android as well~~
Nightly 104 android, with RFP
- windows is the same
-moz-mac-active-menuitem: rgb(10, 100, 220)
-moz-mac-active-source-list-selection: rgb(10, 100, 220)
-moz-mac-defaultbuttontext: rgb(255, 255, 255)
-moz-mac-menuitem: rgb(230, 230, 230)
-moz-mac-menupopup: rgb(230, 230, 230)
-moz-mac-source-list-selection: rgb(200, 200, 200)
-moz-mac-source-list: rgb(247, 247, 247)
-moz-mac-tooltip: rgb(247, 247, 247)
Android FF needs a quit and restart, without RFP it is all 0's
android is whack: I can't get a permanent RFP result: sometimes I get 0's, sometimes I get the above - with clearing data, force quiting, new tabs
OK, so we haven't tested linux yet, but two things
-
- looks like I can reduce the list to ten items (from 31) in 102+
-
- looks like RFP actually protects this: I will have to backtrack to see when it started, and find out if it's intentional
FF 102 - Linux Debian -moz-mac-active-menuitem:rgb(10, 100, 220) -moz-mac-active-source-list-selection:rgb(10, 100, 220) -moz-mac-defaultbuttontext:rgb(255, 255, 255) -moz-mac-menuitem:rgb(230, 230, 230) -moz-mac-menupopup:rgb(230, 230, 230) -moz-mac-source-list-selection:rgb(200, 200, 200) -moz-mac-source-list:rgb(247, 247, 247) -moz-mac-tooltip:rgb(247, 247, 247) -moz-mac-vibrant-titlebar-dark:rgb(40, 40, 40) -moz-mac-vibrant-titlebar-light:rgb(247, 247, 247)
@2glops thanks! can you also post them with RFP disabled? (about:config > privacy.resistFingerprinting > false or just test in a clean FF profile)
FF 102 - Linux Fedora
-moz-mac-active-menuitem:rgb(10, 100, 220)
-moz-mac-active-source-list-selection:rgb(10, 100, 220)
-moz-mac-defaultbuttontext:rgb(255, 255, 255)
-moz-mac-menuitem:rgb(230, 230, 230)
-moz-mac-menupopup:rgb(230, 230, 230)
-moz-mac-source-list-selection:rgb(200, 200, 200)
-moz-mac-source-list:rgb(247, 247, 247)
-moz-mac-tooltip:rgb(247, 247, 247)
-moz-mac-vibrant-titlebar-dark:rgb(40, 40, 40)
-moz-mac-vibrant-titlebar-light:rgb(247, 247, 247)
Clean profile:
-moz-mac-active-menuitem:rgb(0, 0, 0)
-moz-mac-active-source-list-selection:rgb(0, 0, 0)
-moz-mac-defaultbuttontext:rgb(0, 0, 0)
-moz-mac-menuitem:rgb(0, 0, 0)
-moz-mac-menupopup:rgb(0, 0, 0)
-moz-mac-source-list-selection:rgb(0, 0, 0)
-moz-mac-source-list:rgb(0, 0, 0)
-moz-mac-tooltip:rgb(0, 0, 0)
-moz-mac-vibrant-titlebar-dark:rgb(0, 0, 0)
-moz-mac-vibrant-titlebar-light:rgb(0, 0, 0)
cool, thanks guys
- I've reduced the test to only checking 10 items in FF102+ (instead of 31), now it's confirmed Linux matches the number of items
- and I remove all unaffected items from all four css color results (i.e for all remaining 84 items, or 105 items in FF101 or lower) - I set a dummy rgba value (the alpha change means my dummy rgb color shouldn't ever have a collision) first then the moz value, so this adds overhead but keeps things tidier (plus I can tell what isn't covered anymore if things change)
- e.g. in 102 you get 10 items, in 103+ you get 8
Overall, I think this has given a tiny perf, it's hard to say. Anecdotally I'm seeing about 0.5-1ms
Imma gonna leave this open, because I'm interested to find out when these moz values became the same for everyone (if indeed they actually are) and why/how RFP affects them. It may be that the [-moz-] colors test no longer holds any extra entropy (i.e its one set of values for RFP and one set of values for non-RFP - and we already detect RFP in other ways)
PS: I've left the debugging on screen on for now, for easy copypasta
FF 102 - Linux Debian Xfce - RFP off -moz-mac-active-menuitem:rgb(0, 0, 0) -moz-mac-active-source-list-selection:rgb(0, 0, 0) -moz-mac-defaultbuttontext:rgb(0, 0, 0) -moz-mac-menuitem:rgb(0, 0, 0) -moz-mac-menupopup:rgb(0, 0, 0) -moz-mac-source-list-selection:rgb(0, 0, 0) -moz-mac-source-list:rgb(0, 0, 0) -moz-mac-tooltip:rgb(0, 0, 0) -moz-mac-vibrant-titlebar-dark:rgb(0, 0, 0) -moz-mac-vibrant-titlebar-light:rgb(0, 0, 0)
FF102 Linux (Arch, Xfce) - same results as 2glops
FF102 Xubuntu also shows the same results as @2glops so Linux seems somewhat consistent (we have Debian-based, Fedora and Arch).
I'd want to check upstream that nothing gtk'ish or whatever interferes (I've played locally in windows with changing system themes, prefers color, etc, but nothing - not that I tried too hard), but it may be that these 8 items no longer matter, or emilio will get rid of them in time
- Windows 10 Pro 21H1
- FF 102.0.1
-moz-mac-active-menuitem:rgb(10, 100, 220)
-moz-mac-active-source-list-selection:rgb(10, 100, 220)
-moz-mac-defaultbuttontext:rgb(255, 255, 255)
-moz-mac-menuitem:rgb(230, 230, 230)
-moz-mac-menupopup:rgb(230, 230, 230)
-moz-mac-source-list-selection:rgb(200, 200, 200)
-moz-mac-source-list:rgb(247, 247, 247)
-moz-mac-tooltip:rgb(247, 247, 247)
-moz-mac-vibrant-titlebar-dark:rgb(40, 40, 40)
-moz-mac-vibrant-titlebar-light:rgb(247, 247, 247)
^ obviously with RFP enabled, thanks
^ obviously with RFP enabled, thanks
Yup, in clean profile it's zero in all columns (strict mode on)
Windows 7, FF 102 (RFP on)
-moz-mac-active-menuitem:rgb(10, 100, 220)
-moz-mac-active-source-list-selection:rgb(10, 100, 220)
-moz-mac-defaultbuttontext:rgb(255, 255, 255)
-moz-mac-menuitem:rgb(230, 230, 230)
-moz-mac-menupopup:rgb(230, 230, 230)
-moz-mac-source-list-selection:rgb(200, 200, 200)
-moz-mac-source-list:rgb(247, 247, 247)
-moz-mac-tooltip:rgb(247, 247, 247)
-moz-mac-vibrant-titlebar-dark:rgb(40, 40, 40)
-moz-mac-vibrant-titlebar-light:rgb(247, 247, 247)
Same results, os, ff-ver as https://github.com/arkenfox/user.js/issues/1510#issuecomment-1190082147
Android 10, Mull 102.1.1 (so RFP on)
-moz-mac-active-menuitem:rgb(10, 100, 220)
-moz-mac-active-source-list-selection:rgb(10, 100, 220)
-moz-mac-defaultbuttontext:rgb(255, 255, 255)
-moz-mac-menuitem:rgb(230, 230, 230)
-moz-mac-menupopup:rgb(230, 230, 230)
-moz-mac-source-list-selection:rgb(200, 200, 200)
-moz-mac-source-list:rgb(247, 247, 247)
-moz-mac-tooltip:rgb(247, 247, 247)
-moz-mac-vibrant-titlebar-dark:rgb(40, 40, 40)
-moz-mac-vibrant-titlebar-light:rgb(247, 247, 247)