Skip to content

Not working on Firefox if privacy.resistFingerprinting is set to true #664

Closed

Description

@danilowoz

🐛 Bug Report

When this feature is true, the package doesn't work. You can find more details about what resistFingerprinting does here: https://wiki.mozilla.org/Security/Fingerprinting

To Reproduce

Open Firefox and set the privacy.resistFingerprinting as true in about:config and just open an example of React Spring

Expected behavior

Works fine

Link to repro (highly encouraged)

Even React-spring website doesn't work

Environment

  • react-spring v8.x.x
  • react v16.8.x (or react-native v0.58.x)

Activity

  1. MaximeCheramy commented on Sep 19, 2019

    @MaximeCheramy

    I'd also like to add that the website https://www.react-spring.io/ isn't working properly with Firefox with that option on: the menus can't be open.

  2. aleclarson commented on Oct 15, 2019

    @aleclarson
    Contributor

    I haven't looked into this much yet, but I suspect the following points to be part of the issue:

    • The performance API is mostly disabled
    • Time Precision is reduced to 100ms, with up to 100ms of jitter

    The best bet might be to disable animation entirely:

    import { Globals } from 'react-spring'
    
    Globals.assign({
      skipAnimation: privacy.resistFingerprinting,
    })
  3. amertak commented on Feb 13, 2020

    @amertak

    To detect that fingerprinting is enabled something like

    import { Globals } from 'react-spring'
    
    if (performance.mark && performance.getEntries) {
    	performance.mark('dummy_check')
    	const entries = performance.getEntries()
    	
            Globals.assign({
    		skipAnimation: entries && entries.length === 0,
    	})
    }
    

    can be used.

    Also check for FF can be added using the navigator.appCodeName

  4. tomjn commented on Mar 9, 2020

    @tomjn

    In about:config the jitter can be turned on/off and the precision changed. I set jitter to false and increased precision from 1000 to 1 with no resolution.

  5. visualcookie commented on Jun 12, 2020

    @visualcookie
  6. MonliH commented on Sep 25, 2020

    @MonliH
  7. amass01 commented on Nov 4, 2020

    @amass01

    I just upgraded to v9rc3 and the issue seems to be fixed!

  8. joshuaellis commented on Mar 18, 2021

    @joshuaellis
    Member

    Issue seems to be fixed as of v9rc3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions