Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
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
.cargo
.vscode Bug 1377937 - Fix VSCode tasks on Windows (NPOTB, DONTBUILD). r=gps 2017-07-03 21:55:07 +03:00
accessible Bug 1393987 - Add in-process client information to Accessibility Instantiator support info. r=eeejay 2017-09-01 16:17:46 -05:00
addon-sdk Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop 2017-08-30 01:50:27 -07:00
browser Bug 1396912 - Advance the stub installer progress bar at the correct rate during the install phase. r=agashlin 2017-09-05 15:44:49 -07:00
build Bug 1395752 - Define and use sparse profile for Sphinx docs; r=dustin 2017-08-22 22:25:38 -07:00
caps Bug 1387993 - Enable chrome mochitests on linux debug build. r=jmaher 2017-08-30 10:18:30 +10:00
chrome Backed out changeset 05fc8d2d7ca9 (bug 863246) for failing various reftests, e.g. parser/htmlparser/tests/reftest/bug535530-2.html. r=backout on a CLOSED TREE 2017-08-25 16:44:40 +02:00
config merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-01 10:38:51 +02:00
db Bug 1393526 - Upgrade to SQLite 3.20.1. r=mak 2017-08-24 14:50:48 -04:00
devtools merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
docshell Bug 1331740: Pass correct context for TYPE_DOCUMENT loads within docshell. r=smaug 2017-09-05 18:01:07 +02:00
dom 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
editor Backed out changeset d2305bd57a97 (bug 1393140) for changed behavior on request from jorgk. r=backout a=backout 2017-09-02 23:48:23 +02:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions Bug 1392842 - Add intermittency and intermittence to the en-US dictionary. r=ehsan 2017-08-23 07:48:31 +07:00
gfx merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-05 23:55:39 +02:00
gradle/wrapper
hal Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj 2017-08-11 17:45:18 -07:00
image Backed out changeset e273a191e75d (bug 1370412) for Windows gtest failures. 2017-09-05 09:37:11 -04:00
intl merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-02 10:54:44 +02:00
ipc Bug 1255894: Part 9 - Allow returning non-copyable types in async IPDL methods. r=kanru 2017-08-27 18:57:30 -07:00
js Bug 1379540 - Don't preserve timestamp when copying configure.in to configure. r=RyanVM 2017-09-05 15:47:44 -07:00
layout Bug 1396776 - Move mCanvasTM from the sub classes of nsSVGDisplayContainerFrame to nsSVGDisplayContainerFrame. r=longsonr+218550 2017-09-05 17:26:46 +08:00
media Bug 1264479: don't crash on disappearing data channels. r=bwc 2017-08-31 14:30:50 -07:00
memory Bug 1395776 - Make _recalloc, _expand and _msize go through replace-malloc when enabled. r=njn 2017-08-31 14:17:49 +09:00
mfbt Bug 1366511: Part 3 - Add mozilla::ToResult() to convert other result types to equivalent Result. r=nbp,ehsan 2017-08-29 21:28:31 -07:00
mobile Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen 2017-09-05 21:26:32 -04:00
modules Bug 1396731 - Make the default font size for zh same as other languages. r=xidorn 2017-09-05 10:00:42 -07:00
mozglue Bug 1395776 - Fold replace-malloc into mozjemalloc. r=njn 2017-08-31 12:02:01 +09:00
netwerk Bug 1331740: Pass correct context for TYPE_DOCUMENT loads within docshell. r=smaug 2017-09-05 18:01:07 +02:00
nsprpub Bug 1393854, NSPR_4_17_BETA1 2017-08-25 19:01:51 +02:00
other-licenses Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
parser Bug 1395828 (part 2) - Rename nsHTMLTags methods. r=mrbkap. 2017-09-01 19:42:42 +10:00
probes
python Bug 1277338 - Part 12: Make js/rust a top level crate instead of js/src; r=froydnj 2017-09-05 09:26:22 -07:00
rdf Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
security bug 1393143 - remove a few unused attributes and methods on PKCS#11 interfaces r=Cykesiopka 2017-08-17 16:11:57 -07:00
services Bug 1396544 - don't schedule syncs when Sync isn't configured. r=rnewman 2017-09-05 12:40:53 +10:00
servo servo: Merge #18373 - Don't unnecessarily construct gfxFontFeatureValueSet (from canaltinova:font-feature-vals); r=xidorn 2017-09-05 18:35:55 -05:00
startupcache Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
storage Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
taskcluster Bug 1396657: really, finally, use /builds for old action tasks; r=wcosta 2017-09-05 13:27:06 +00:00
testing Bug 1394551 - stylo: Update test expectations for @font-feature-values r=me 2017-09-05 17:43:04 -07:00
third_party merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-05 23:55:39 +02:00
toolkit merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
tools Bug 1396544 - don't schedule syncs when Sync isn't configured. r=rnewman 2017-09-05 12:40:53 +10:00
uriloader Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj 2017-09-01 11:53:31 +03:00
view Backed out changeset 497dbf087ad5 (add diagnostic asserts) (bug 1354933) 2017-07-07 14:54:55 -05:00
widget merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-05 23:55:39 +02:00
xpcom merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-05 23:55:39 +02:00
xpfe Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
.clang-format Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
.clang-format-ignore No bug - Remove an non-breaking space r=me DONTBUILD 2017-09-01 11:41:39 +02:00
.clang-tidy
.cron.yml bug 1349227 - 2 nightlies per day on m-c. r=catlee DONTBUILD 2017-08-29 16:01:14 -07:00
.eslintignore Bug 1395545 - test that an invalid source map is reported to the console; r=nchevobbe 2017-08-31 12:03:24 -06:00
.eslintrc.js Bug 1359011 - Make the mozilla/recommended eslint configuration the default for the whole tree. r=mossop 2017-04-25 20:12:21 +01:00
.flake8 Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
.gdbinit
.gdbinit_python Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.gitignore Bug 1382304: hg/gitignore captures/ dir. r=nalexander 2017-07-19 11:08:06 -07:00
.hgignore Bug 1387265 - Expand talos tp6 to macosx; r=jmaher 2017-08-15 15:30:23 -04:00
.hgtags No bug - Tagging mozilla-central 320642944e42a889db13c6c55b404e32319d4de6 with FIREFOX_BETA_56_BASE a=release DONTBUILD CLOSED TREE 2017-08-02 08:35:53 +01:00
.inferconfig Bug 1357629 - Add httpclientandroidlib to .inferconfig ignore list r=nalexander,njpark 2017-04-18 20:05:25 -07:00
.lldbinit Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.taskcluster.yml Backed out 4 changesets (bug 1394883) for Windows signing chain-of-trust failures 2017-08-31 20:02:34 -07:00
.yamllint Bug 1392795 - [yamllint] Group paths to lint by their closest config and run each config group separately, r=dustin 2017-08-23 11:28:28 -04:00
.ycm_extra_conf.py
AUTHORS Bug 1111333 - Enable double-tap-drag to zoom. r=kats 2017-05-23 19:53:06 +02:00
CLOBBER Bug 1395486 followup. Clobber to fix packaging failure for Android builds. r=clobber 2017-09-02 13:46:34 +02:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Backed out 4 changesets (bug 1259832) for apparently scheduling nightlies on every push/platform a=backout 2017-08-16 17:26:08 -07:00
README.txt
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
build.gradle Bug 1255227 - Part 1: Stop using deprecated android-sdk-manager Gradle plugin. r=sebastian 2017-07-18 09:46:09 -07:00
client.mk Bug 1386739 - Only pass --output-sync=line to make in automation. r=gps 2017-08-15 12:30:28 -07:00
client.py
configure.in
configure.py
gradle.properties
gradlew
mach
moz.build Backed out 9 changesets (bug 1383880) for decision task bustage. 2017-09-01 15:37:08 -04:00
moz.configure Bug 1396730 - Log "checking watchman" before checking for watchman. r=chmanchester 2017-08-30 17:25:30 +09:00
mozilla-config.h.in Bug 1371266 - libpng should be built with -std=c89. r=glennrp 2017-06-08 06:29:03 -07:00
npm-shrinkwrap.json Backed out changeset df8215261c7e (bug 1349689) on request from rchien. r=backout 2017-08-31 16:58:32 +02:00
old-configure.in Bug 1393526 - Upgrade to SQLite 3.20.1. r=mak 2017-08-24 14:50:48 -04:00
package.json Bug 1380956 - List only the directly required dependencies for ESLint in the top-level package.json. r=ahal 2017-07-14 12:21:54 +01:00
settings.gradle Backed out 2 changesets (bug 1355625) for causing bustage a=backout 2017-06-22 12:05:56 -07:00
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/