gecko-dev/dom
Tim Huang 7d1c0f2d14 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

--HG--
extra : rebase_source : 85cbf66881c868ca5109022ffd4af81e3ab0a049
2017-06-15 16:48:27 +08:00
..
animation Bug 1371518 - Make KeyframeUtils::IsAnimatable consult the Servo backend; r=hiro 2017-06-14 15:23:45 +09:00
asmjscache Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
audiochannel Bug 1367075 - Get rid of AudioChannelService::IsParentProcess, r=me - CLOSED TREE 2017-05-24 09:49:35 +02:00
base 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 2017-06-15 16:48:27 +08:00
battery
bindings Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug 2017-06-13 15:09:19 +08:00
broadcastchannel Bug 1372265 - Use LookupForAdd instead of Get+Put, and LookupRemoveIf instead of Get+Remove, to avoid unnecessary hashtable lookups. r=froydnj 2017-06-14 16:11:21 +02:00
browser-element Bug 1368712 - Get rid of nsIBrowserElementAPI.{set,get}Visible, r=kanru 2017-05-31 21:15:23 +02:00
cache Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
canvas merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-06-15 20:12:28 +02:00
commandhandler Bug 1372268 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj 2017-06-14 16:11:22 +02:00
console Bug 1372323 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj 2017-06-14 17:27:25 +02:00
credentialmanagement bug 1332681 - part 4/4 - convert authentication.getAssertion to credentials.get r=jcj,qdot 2017-05-23 14:55:10 -07:00
crypto Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
encoding Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
events Bug 1373285 - Remove keyboard apz telemetry probes. r=smaug 2017-06-15 13:55:26 -05:00
fetch Bug 1372888 - FetchBody<Derived>::BeginConsumeBody should check the return value of nsEventTarget::Dispatch, r=bkelly 2017-06-14 15:53:04 +02:00
file Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
filehandle Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
filesystem Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
flyweb Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly) 2017-06-15 20:16:25 -07:00
gamepad Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
geolocation
grid
html Bug 1368893 - rewrite dom/html/test/test_iframe_sandbox_inheritance.html. r=smaug 2017-06-16 10:52:25 +08:00
imptests Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron 2017-05-25 11:26:12 +08:00
indexedDB Merge mozilla-central to mozilla-inbound 2017-06-14 14:50:11 +02:00
interfaces Bug 1274663 - Expose API to trigger device reset. r=dvander 2017-06-15 14:34:00 -04:00
ipc Bug 1274663 - Expose API to trigger device reset. r=dvander 2017-06-15 14:34:00 -04:00
json Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
jsurl Bug 1372994 - Clear up leftover ISO-8859-1 encoding names. r=emk 2017-06-15 10:35:22 +03:00
locales Bug 1339690 - Part 8: Produce an appropriate warning highlighting the invalid property value. r=birtles,flod 2017-06-14 14:18:25 +08:00
manifest
mathml Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz 2017-06-07 10:28:20 -07:00
media merge mozilla-inbount to mozilla-central. r=merge a=merge 2017-06-15 11:11:30 +02:00
messagechannel Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru 2017-05-23 18:05:19 +02:00
network Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
notification Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
offline
payments Backed out 2 changesets (bug 1345365) for frequent failures in test_data.html a=backout 2017-06-15 00:52:04 -07:00
performance 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 2017-06-15 16:48:27 +08:00
permission
plugins Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
power
presentation Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
promise Bug 1345284 - Move variable declarations in test_promise_argument.html, and test_promise_callback_retval.html. r=jmaher 2017-06-05 12:35:53 -04:00
push Bug 1369314 - Get rid of nsScriptSecurityManager::GetAppCodebasePrincipal, r=bholley 2017-06-02 11:05:28 +02:00
quota Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
res
script Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly) 2017-06-15 20:16:25 -07:00
secureelement
security Bug 1267075 - Part 1: call SetBlockedRequest when CSP check failed. r=bz 2017-06-16 10:12:08 +08:00
smil Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley 2017-06-10 22:27:45 -07:00
storage Bug 1370087 - GenerateOriginKey cannot assert the existence of nsIPrincipal, r=smaug 2017-06-12 12:26:08 +02:00
svg Bug 1369904 - Bounding box should not include control points. r=lsalzman 2017-06-14 06:34:01 +01:00
system Bug 1370027: Part 1 - Cleanly handle a subprocess child being reaped by NSPR. r=aswan 2017-06-06 16:00:53 -07:00
tests Bug 1369627 - Part 1: Add a test for the behavior of window.resizeBy right after opening a new window, r=smaug 2017-06-15 14:34:46 -04:00
time
u2f Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly) 2017-06-15 20:16:25 -07:00
url Bug 1368955 - Split URL.cpp in URLMainThread.{cpp,h} and URLWorker.{cpp,h}, r=qdot 2017-05-31 21:18:56 +02:00
vr
webauthn Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly) 2017-06-15 20:16:25 -07:00
webbrowserpersist Bug 1372014 - Remove a redundant hashtable Contains call. r=froydnj 2017-06-14 01:54:26 +02:00
webidl Backed out 2 changesets (bug 1345365) for frequent failures in test_data.html a=backout 2017-06-15 00:52:04 -07:00
workers Bug 1369303 - Part 1: Adding 'privacy.resistFingerprinting' into worker prefs. r=arthuredelstein,baku 2017-06-15 16:48:26 +08:00
worklet
xbl merge mozilla-inbount to mozilla-central. r=merge a=merge 2017-06-15 11:11:30 +02:00
xhr Bug 1367110 - Expose XHRMT's ErrorCode to chrome JS. r=baku 2017-05-24 08:52:15 -04:00
xml Bug 1365506 - fix XHTML/XUL tests that use data: URI. r=smaug 2017-05-23 09:02:06 +08:00
xslt
xul Bug 1371577 - stylo: Update test expectations after fixing pseudo element matching for XBL stylesheets. r=emilio 2017-06-14 16:45:46 +08:00
jar.mn
moz.build Backed out changeset 437d6df1859c (bug 1345361) for ESLint failures. 2017-05-25 18:05:15 -04:00