gecko-dev/dom
JW Wang 07961dc53c Bug 1395017. P3 - always dispatch a task to run UpdatePrincipal() even when CacheClientUpdatePrincipal() already runs in the main thread. r=cpearce
When MediaCacheStream::NotifyDataReceived() runs off the main thread,
there is no guarantee that the principal will be updated before the new
data is observable to the consumer because the principal can only be
updated on the main thread while the consumer can access the data off
the main thread.

To make the code simpler, we always dispatch a task to run UpdatePrincipal()
even when CacheClientUpdatePrincipal() already runs in the main thread.

This also avoid the deadlock because ChannelMediaResource::UpdatePrincipal()
will never run with the cache monitor held.

MozReview-Commit-ID: 9CdrJnaV0hl

--HG--
extra : rebase_source : 128d54f4583199e7bfa8c72895583ab7fb668706
extra : intermediate-source : c2310f99bdc7529f1e1c67edbb8274b20b679cb2
extra : source : b6cc234d83e7b18ab69502af78d27ce5eda3b350
2017-08-30 11:42:25 +08:00
..
abort Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
animation Bug 1395351: Use the style flattened tree in EffectCompositor::PreTraverseInSubtree. r=bholley 2017-09-01 19:28:01 +02:00
asmjscache
audiochannel Bug 1388236 - Remove now obsolete AudioChannelConfig in favour of AudioPlaybackConfig. r=alwu 2017-08-10 13:00:09 +12:00
base merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
battery
bindings Bug 1255894: Part 6 - Implement StreamFilter DOM bindings. r=baku,mixedpuppy 2017-08-27 19:51:36 -07:00
broadcastchannel Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
browser-element Bug 1391371 - turn on non-e10s tests for windows7-debug. r=ahal 2017-08-17 15:46:03 -04:00
cache Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly 2017-08-29 11:31:06 +02:00
canvas Bug 1322746 - Mark windows as passing video fast-upload tests. 2017-09-02 21:52:50 -07:00
commandhandler
console Backed out 2 changesets (bug 1382377) under suspicion of causing asan devtools failures a=backout CLOSED TREE 2017-08-30 16:44:20 -07:00
credentialmanagement
crypto
encoding
events Bug 1389086 Part1: Remove windows line ending in the test file. r=smaug. 2017-09-01 10:12:54 +08:00
fetch Bug 1381748 - Cleanup FetchConsumer workflow - part 3 - shutdown workflow, r=catalinb 2017-09-04 17:06:47 +02:00
file Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
filehandle
filesystem Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
flyweb Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
gamepad Bug 1347519 - Use CFRunLoopSource for passing shutdown signal r=qdot 2017-09-01 14:41:35 +08:00
geolocation
grid
html Merge m-c to autoland, a=merge 2017-09-01 16:34:14 -07:00
imptests Bug 1341102 - Remove stale annotations ; r=emilio 2017-09-01 14:59:13 -07:00
indexedDB Bug 1395868 - Fix the failure of idbcursor-continuePrimaryKey.htm. r=baku 2017-09-01 16:45:58 +08:00
interfaces Bug 1385187 - Reject PaymentRequest.show() with NotSupportedError DOMException if no supported method. r=baku 2017-08-28 11:55:59 +08:00
ipc Merge inbound to central, a=merge 2017-09-01 16:29:10 -07:00
json Bug 1387788 - Remove [deprecated] methods from nsIJSON. r=Ehsan 2017-08-06 10:25:15 +09:00
jsurl Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
locales Bug 1391933 - Fix localization issues in Kill Add-on dialogs, r=kmag 2017-08-20 10:52:32 +02:00
manifest Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj 2017-08-04 17:49:22 +09:00
mathml
media Bug 1395017. P3 - always dispatch a task to run UpdatePrincipal() even when CacheClientUpdatePrincipal() already runs in the main thread. r=cpearce 2017-08-30 11:42:25 +08:00
messagechannel Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
network Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
notification merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-08-30 11:05:16 +02:00
offline Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
payments Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
performance Bug 1396219 - Support PerformanceObserverInit.buffered. r=baku 2017-09-03 10:25:57 +09:00
permission
plugins Bug 1388903 - Part 2: Remove PrintDlg Window Parentage in NPAPI Process. r=jimm 2017-08-29 15:59:34 -07:00
power
presentation Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
promise Bug 1347644 - Simplify/rename JS::AsyncTask (r=till,bkelly,mccr8) 2017-08-16 14:38:53 -05:00
push Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
quota Bug 1392755 - Use a normal thread instead of LazyIdleThread for QuotaManager IO thread. r=jvarga 2017-08-30 15:09:32 -04:00
res
script Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana 2017-08-31 06:07:00 -04:00
secureelement
security Bug 1331740: Pass correct context for TYPE_DOCUMENT loads within docshell. r=smaug 2017-09-05 18:01:07 +02:00
smil Bug 1390367 - Pass SMIL mochitests of stroke-* even if a computed value has no px unit. r=birtles 2017-09-05 13:15:32 +09:00
storage Bug 1395598 - Correct LocalStorage mozStorage misuse. r=janv 2017-09-01 10:32:59 -04:00
svg Bug 1395873 - Append eUseUserSpaceOfUseElement flag after all standard SVGBoundingBoxOptions checked. r=longsonr+218550 2017-09-01 22:37:59 +08:00
system Bug 1391181 - Reimplement the quaternion to Tait-Bryan conversion for device orientation events. r=snorp 2017-08-31 15:10:38 -05:00
tests Bug 1381748 - Cleanup FetchConsumer workflow - part 3 - shutdown workflow, r=catalinb 2017-09-04 17:06:47 +02:00
time
u2f
url Bug 1380617 - Add test checking that URL.origin returns punycode r=smaug 2017-08-09 17:44:03 +02:00
vr Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
webauthn Bug 1380270 - Add dlopen() version of libudev-sys r=qdot,ted 2017-08-31 19:11:27 +02:00
webbrowserpersist Bug 1391110: Part 3 - Add nsIWebBrowserPersistable to FrameLoader bindings. r=smaug 2017-08-19 14:16:16 -07:00
webidl Backed out changeset 44ff3bc7bee5 (bug 1063635) for failing xpcshell's toolkit/components/osfile/tests/xpcshell/test_read_write.js on Linux x64 debug. r=backout 2017-09-01 15:54:56 +02:00
workers merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-08-31 14:36:51 +02:00
worklet
xbl Bug 1382078 Part 4 - Avoid unneeded restyle when XBL styleset is utilized by different PresContext. r=emilio 2017-09-04 17:57:00 +08:00
xhr Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana 2017-08-31 06:07:00 -04:00
xml Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
xslt Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
xul Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
jar.mn
moz.build Bug 1378342 - AbortSignal/AbortController - part 1 - Moving FetchController/FetchSignal into dom/abort, r=bkelly 2017-08-29 11:31:05 +02:00