gecko-dev/js/public
Jonathan Hao dca1a28633 Bug 1217238 - Reduce time precision when privacy.resistFingerprinting is on. r=mystor
This patch is adapted from Tor bug 1517.

To offer some protection against timing attacks by JS content pages, in this
patch we round the various time-exposing APIs (such as Date and
Event.timeStamps) to the nearest 100 ms when the pref "privacy.resistFingerprinting" is on.

MozReview-Commit-ID: eGucM9nGTn

--HG--
extra : rebase_source : 3ee600b07943f3954e9a2a9561391f2f7821bb86
2017-06-06 11:45:14 +08:00
..
CallArgs.h Bug 1277338 - Part 2: Refactor CallArgs to avoid zero-sized base classes; r=sfink 2017-04-13 13:22:20 -07:00
CallNonGenericMethod.h
CharacterEncoding.h Bug 1325050 - Structure reorganization for multithreaded runtimes, r=jandem,jonco,h4writer,luke,lhansen,nbp. 2017-02-02 12:12:43 -07:00
Class.h Bug 1345115 - Part 1: Don't switch compartment when typed array constructor is called with arraybuffer from other compartment. r=Waldo 2017-04-19 06:07:16 -07:00
Conversions.h Bug 1290337 - Part 25: Use HandleValue in ToNumber and ToNumberSlow. r=shu 2016-10-18 16:45:59 +09:00
Date.h Bug 1217238 - Reduce time precision when privacy.resistFingerprinting is on. r=mystor 2017-06-06 11:45:14 +08:00
Debug.h Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
GCAnnotations.h
GCAPI.h Bug 1364120 - Remove FINISH_LARGE_EVALUATE gc. r=jonco 2017-05-24 18:14:31 +00:00
GCHashTable.h Bug 1325406 - Refactor rooting base class templates r=sfink r=mccr8 2017-01-10 10:12:14 +00:00
GCPolicyAPI.h Bug 1318384 - Remove barriers on Zone typed object descriptors set to avoid reviving compartments r=billm 2016-11-23 10:15:05 +00:00
GCVariant.h Bug 1325406 - Refactor rooting base class templates r=sfink r=mccr8 2017-01-10 10:12:14 +00:00
GCVector.h Bug 1342345 part 2 - Use a Vector for AutoCycleDetector. r=jonco 2017-02-25 12:23:44 +01:00
HashTable.h Bug 1341367 - Make the sense of HashTable::Ptr::isValid match its name r=luke 2017-06-06 11:25:57 +01:00
HeapAPI.h Bug 1369444 - Sweep the atoms table incrementally r=sfink 2017-06-02 10:32:37 +01:00
Id.h Bug 1319831 - Clarify some code with explicit casts; r=Waldo 2016-12-01 09:23:21 +01:00
Initialization.h
LegacyIntTypes.h
MemoryMetrics.h Bug 1358047 - Move Baseline CacheIR code map from JitCompartment to JitZone. r=djvj 2017-04-24 12:41:04 +02:00
Principals.h Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
ProfilingFrameIterator.h Bug 1364520: Remove the jitTop optimization; r=jandem 2017-06-02 19:34:05 +02:00
ProfilingStack.h Bug 1369644 - Remove use of |volatile| from ProfileEntry. r=mstange,shu,jseward,froydnj. 2017-06-02 17:16:56 +10:00
Proxy.h Bug 1360523 - Define number of reserved slots explicitly for each proxy js::Class. r=bz 2017-04-29 14:41:49 +02:00
Realm.h
RefCounted.h Bug 1313351 - Fix js::RefCounted to not do leak checking. r=jandem 2016-12-23 21:13:26 +01:00
RequiredDefines.h
Result.h Bug 1277368 part 1 - Add JS::Result<> and use it in a few places. r=luke 2016-11-23 17:57:43 +01:00
RootingAPI.h Bug 1362977 - Rename CellSize to CellAlignBytes and improve the naming of related constants r=sfink 2017-05-09 11:38:32 +01:00
SliceBudget.h Back out bug 1308039 - GC interrupt callbacks (a=backout) 2017-01-11 13:19:58 -08:00
StructuredClone.h Bug 1352681 - Make SAB rawBuffer refcounting for structured clone more sophisticated. r=sfink 2017-04-03 14:18:15 +02:00
SweepingAPI.h Bug 1345307 - Implement runtime-wide WeakCache, r=jonco 2017-03-07 12:55:37 -08:00
TraceKind.h Bug 1345177 - Make RegExpShared a GC thing r=sfink 2017-03-27 10:38:29 +01:00
TracingAPI.h Bug 1345177 - Make RegExpShared a GC thing r=sfink 2017-03-27 10:38:29 +01:00
TrackedOptimizationInfo.h Bug 1357680 part 1 - Track Ion-inlined scripts explicitly so we can inline functions with unknown properties. r=bhackett 2017-04-21 10:05:12 +02:00
TypeDecls.h
UbiNode.h Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
UbiNodeBreadthFirst.h
UbiNodeCensus.h Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
UbiNodeDominatorTree.h
UbiNodePostOrder.h
UbiNodeShortestPaths.h Bug 1317430 - Avoid a unnecessary copy by passing a const & in js/ r=Waldo 2016-11-14 23:16:24 +01:00
UniquePtr.h Bug 1320905 - Add js::RefCounted that uses js_delete (r=waldo) 2016-12-05 15:59:18 -08:00
Utility.h Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
Value.h Bug 1352430 - Add barrier to wrapper cache to clear dying objects that have not yet been finalized r=bz r=sfink 2017-04-26 11:18:39 +01:00
Vector.h Bug 1319831 - Remove an unbalanced pragma from Vector.h; r=Waldo 2016-12-01 09:23:21 +01:00
WeakMapPtr.h