Closed Bug 1834744 Opened 3 years ago Closed 3 years ago

Split up RealmBehaviors::shouldResistFingerprinting

Categories

(Core :: Security, task)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: tschuster, Assigned: tschuster)

References

Details

Attachments

(3 files)

Currently the JS engine just gets one config option for enabling/disabling RFP mode. Instead we should have a realm option for every configurable feature.

Instead of different realm options, could we possibly give it a uint32/uint64/BitSet with the enabled RFPTargets? Maybe we could add a reserved bit that indicates 'AllTargets', to be used for RFP mode, and then that bit is cleared for FPP and it checks individual targets?

I don't think that extensibility is really necessary. (We would also need to move RFPTarget to some place that is accessible to the JS engine) I think right now we would only need two options: forceUTCTimezone and forceFdlibm. I doubt that there are going to be many more sources of fingerprinting added to JS. And we do have some other ways of fingerprinting protection we already use anyway that don't need a flag, at least JS::SetReduceMicrosecondTimePrecisionCallback.

Hm, okay I figured there'd be a half dozen things we'd need, if it's only 2 or 3....

Assignee: nobody → tschuster

Tom, please have a look at the question about WokerPrivate::ShouldResistFingerprinting.

Flags: needinfo?(tom)
Flags: needinfo?(tom)
Attachment #9336719 - Attachment description: WIP: Bug 1834744 - Split up RealmBehaviors::shouldResistFingerprinting in js/src. → Bug 1834744 - Split up RealmBehaviors::shouldResistFingerprinting in js/src. r?#spidermonkey-reviewers
Attachment #9336720 - Attachment description: WIP: Bug 1834744 - Introduce and use two RFPTargets for JS options. → Bug 1834744 - Introduce and use two RFPTargets for JS options. r?tjr
Pushed by tschuster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a69fb7b90ba Go back to having WorkerPrivate::ShouldResistFingerprinting. r=tjr https://hg.mozilla.org/integration/autoland/rev/740c98ec8491 Split up RealmBehaviors::shouldResistFingerprinting in js/src. r=spidermonkey-reviewers,jandem https://hg.mozilla.org/integration/autoland/rev/655c1ec8a538 Introduce and use two RFPTargets for JS options. r=tjr
Blocks: 1835987
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: