author Tim Huang <>
Thu, 15 Jun 2017 16:48:27 +0800
changeset 364451 61e7a2279d8170c67c80fa3eee9c846ff0851ab5
parent 40458 1584ba8c1b86f9c4de5ccda5241cef36e80f042c
permissions -rw-r--r--
Bug 1369303 - Part 2: Marking the performance timing API always reports 0 and the access of resource timing and user timing becomes NOP when 'privacy.resistFingerprinting' is true. r=arthuredelstein,baku This patch is going to neutralize the threat of fingerprinting of performance API by spoofing the value of performance timing into 0, making getEntries* functions always returns an empty list and making mark() and measure() into NOP methods. In addition, this patch changes nsContentUtils::ShouldResistFingerprinting() to allow it can be called in both main thread and worker threads. MozReview-Commit-ID: C8Jt7KEMe5e

Please see the file toolkit/content/license.html for the copyright licensing
conditions attached to this codebase, including copies of the licenses

You are not granted rights or licenses to the trademarks of the
Mozilla Foundation or any party, including without limitation the
Firefox name or logo.

For more information, see: