Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1772416 - increase sleep duration in measure_associated... WPT. r…
…=sefeng Over two weeks, this test intermittently failed on Firefox in 1/17 runs. After reading the timestamp [precision reduction code], the cause of the failure appears to be that we're not sleeping long enough. We clamp the value (i.e. discard sub-millisecond precision) and randomly round up to the next millisecond value via the midpoint & clampedAndJittered code. In the worst case, this will cause values 1.999ms apart to be rounded to the same value, e.g. 10ms and 11.999ms round to 11ms. In theory, we need to sleep at least 2ms but we've been sleeping 1ms. [precision reduction code]: https://searchfox.org/mozilla-central/rev/31368c7795f44b7a15531d6c5e52dc97f82cf2d5/toolkit/components/resistfingerprinting/nsRFPService.cpp#413-428 Differential Revision: https://phabricator.services.mozilla.com/D156988
- Loading branch information