user.js icon indicating copy to clipboard operation
user.js copied to clipboard

-moz color property FP test

Open Thorin-II opened this issue 4 years ago • 24 comments

STR

  • go to https://arkenfox.github.io/TZP/tzp.html#theend
  • click on the show perf & debugging
  • copypaste the moz colors results 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+

Thorin-II avatar Jul 19 '22 12:07 Thorin-II

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)

fxbrit avatar Jul 19 '22 13:07 fxbrit

RFP shouldn't affect the results, try it

Thorin-II avatar Jul 19 '22 13:07 Thorin-II

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)

fxbrit avatar Jul 19 '22 13:07 fxbrit

~~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

Thorin-II avatar Jul 19 '22 13:07 Thorin-II

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

Thorin-II avatar Jul 19 '22 13:07 Thorin-II

OK, so we haven't tested linux yet, but two things

    1. looks like I can reduce the list to ten items (from 31) in 102+
    1. looks like RFP actually protects this: I will have to backtrack to see when it started, and find out if it's intentional

Thorin-II avatar Jul 19 '22 13:07 Thorin-II

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 avatar Jul 20 '22 08:07 2glops

@2glops thanks! can you also post them with RFP disabled? (about:config > privacy.resistFingerprinting > false or just test in a clean FF profile)

fxbrit avatar Jul 20 '22 08:07 fxbrit

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)

remyabel2 avatar Jul 20 '22 10:07 remyabel2

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

Thorin-II avatar Jul 20 '22 10:07 Thorin-II

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)

2glops avatar Jul 20 '22 11:07 2glops

FF102 Linux (Arch, Xfce) - same results as 2glops

bashonly avatar Jul 20 '22 16:07 bashonly

FF102 Xubuntu also shows the same results as @2glops so Linux seems somewhat consistent (we have Debian-based, Fedora and Arch).

fxbrit avatar Jul 20 '22 17:07 fxbrit

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

Thorin-II avatar Jul 20 '22 17:07 Thorin-II

  • 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)

cryptocat8 avatar Jul 21 '22 05:07 cryptocat8

^ obviously with RFP enabled, thanks

Thorin-II avatar Jul 21 '22 06:07 Thorin-II

^ obviously with RFP enabled, thanks

Yup, in clean profile it's zero in all columns (strict mode on)

cryptocat8 avatar Jul 21 '22 08:07 cryptocat8

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)

opusforlife2 avatar Jul 21 '22 16:07 opusforlife2

Same results, os, ff-ver as https://github.com/arkenfox/user.js/issues/1510#issuecomment-1190082147

rusty-snake avatar Jul 21 '22 17:07 rusty-snake

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)

opusforlife2 avatar Jul 21 '22 19:07 opusforlife2