Bug 1448869 Set Timer Precision to 100 us (with Jitter) r=baku

MozReview-Commit-ID: HV1rG4Kzg9k

--HG--
extra : rebase_source : ff1c8afa3a58081a6846f6b5a2dc868e4ae5af61
This commit is contained in:
Tom Ritter 2018-03-26 11:41:59 -05:00
parent 47dc18171d
commit 278a49f747
2 changed files with 2 additions and 2 deletions

View File

@ -1429,7 +1429,7 @@ pref("privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts", true);
// File.lastModified, audioContext.currentTime, canvas.captureStream.currentTime
pref("privacy.reduceTimerPrecision", true);
// Dynamically tune the resolution of the timer reduction for both of the two above prefs
pref("privacy.resistFingerprinting.reduceTimerPrecision.microseconds", 2000);
pref("privacy.resistFingerprinting.reduceTimerPrecision.microseconds", 100);
// Enable jittering the clock one precision value forward
pref("privacy.resistFingerprinting.reduceTimerPrecision.jitter", true);
// Lower the priority of network loads for resources on the tracking protection list.

View File

@ -47,7 +47,7 @@ static mozilla::LazyLogModule gResistFingerprintingLog("nsResistFingerprinting")
#define RESIST_FINGERPRINTING_PREF "privacy.resistFingerprinting"
#define RFP_TIMER_PREF "privacy.reduceTimerPrecision"
#define RFP_TIMER_VALUE_PREF "privacy.resistFingerprinting.reduceTimerPrecision.microseconds"
#define RFP_TIMER_VALUE_DEFAULT 2000
#define RFP_TIMER_VALUE_DEFAULT 100
#define RFP_JITTER_VALUE_PREF "privacy.resistFingerprinting.reduceTimerPrecision.jitter"
#define RFP_JITTER_VALUE_DEFAULT true
#define RFP_SPOOFED_FRAMES_PER_SEC_PREF "privacy.resistFingerprinting.video_frames_per_sec"