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
Перейти к файлу
Andrew Osmond f67ab8c057 Bug 1382783 - Retarget non-HTTP image URIs (chrome, blob) to the image IO thread if not an SVG. r=tnikkel
Currently we only permit requests from HTTP channels to be retargeted to
the image IO thread. It was implemented this way originally in bug
867755 but it does not appear there was a specific reason for that.

The only kink in this is some browser chrome mochitests listen on debug
build only events to ensure certain chrome images are loaded and/or
drawn. As such, this patch ensures that those observer notifications
continue to be served, requiring a dispatch from the image IO thread to
the main thread.

Another issue to note is that SVGs must be processed on the main thread;
the underlying SVG document can only be accessed from it. We enforce
this by checking the content type. The possibility already exists that
an HTTP response could contain the wrong content type, and in that case,
we fail to decode the image, as there is no content sniffing support for
SVG. Thus there should be no additional risk taken by using the image IO
thread from other non-HTTP channels (if they don't specify the SVG
content type, it is not rendered today, and if they do, it will remain
on the main thread as it is today).

We also ignore data URIs. The specification requires that we process
these images sychronously. See bug 1325080 for details.
2017-09-25 11:44:49 -04:00
.cargo
.vscode
accessible Bug 870698 - Part 10: Replace Append(NS_LITERAL_STRING("")) with AppendLiteral(u""). r=erahm 2017-09-07 18:32:54 -07:00
browser merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-25 11:58:15 +02:00
build Bug 1402233 - Add web platform tools files to taskgraph sparse profile r=mshal 2017-09-22 11:12:56 -07:00
caps Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm 2017-09-03 22:14:11 -07:00
chrome Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm 2017-09-06 01:13:45 -07:00
config Backed out 4 changesets (bug 1348981) for Linux debug timeouts in test_system_update.js 2017-09-23 06:20:56 -07:00
db Bug 1369361 - Backport SQLite fix removing rand_s() in an attempt to avoid Lenovo DLL crashes. r=mak 2017-09-12 12:58:59 -07:00
devtools Bug 1399948 - Part 1: Refactor breadcrumb css into separate file. r=gl 2017-09-22 11:57:32 -04:00
docshell merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-25 11:58:15 +02:00
dom Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
editor Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
embedding
extensions Bug 1286858 - Data storage and interface changes for SameSite cookies. r=valentin 2017-09-25 01:27:04 +08:00
gfx merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-25 11:58:15 +02:00
gradle/wrapper
hal Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj 2017-08-11 17:45:18 -07:00
image Bug 1382783 - Retarget non-HTTP image URIs (chrome, blob) to the image IO thread if not an SVG. r=tnikkel 2017-09-25 11:44:49 -04:00
intl Bug 1402799 - Remove '#if ENABLE_INTL_API' conditional from line-breaker code. r=m_kato 2017-09-25 12:37:13 +01:00
ipc Bug 1382182 - Build jsep using moz.build; r=ted,jesup 2017-07-20 11:24:08 -04:00
js Bug 1399399 - Move internal classes out of RootingAPI.h. r=jonco 2017-09-25 14:52:16 +08:00
layout Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
media Bug 1402348 - fix webrtc.org screen_capturer_unittest and window_capturer_unittest segfault on Linux; r=jesup 2017-09-22 14:33:49 -04:00
memory Bug 1402174 - Initial actual implementation of the moz_arena_* API. r=njn 2017-09-21 14:24:37 +09:00
mfbt Bug 1329019 - Allow specifying capacity to Vector::replaceRawBuffer (r=froydnj) 2017-09-22 10:34:24 -05:00
mobile Bug 1388750 - Checkstyle fix. r=me 2017-09-25 09:43:44 -05:00
modules Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm 2017-09-07 18:15:42 -07:00
mozglue Backed out changeset 4dab43248f15 (bug 1372823) for crashing GTest on Windows 10 x64 debug. r=backout 2017-09-21 17:27:32 +02:00
netwerk Merge inbound to central, a=merge 2017-09-21 17:03:29 -07:00
nsprpub Bug 1393854, land NSPR_4_18_RTM, no code change, only version numbers, r=me 2017-09-19 18:43:02 +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 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
probes
python Bug 1401718: adapt to xcode's new non-ascii license error r=gps 2017-09-22 14:58:28 -07:00
rdf Bug 870698 - Part 3: Replace Insert("") with InsertLiteral(""). r=erahm 2017-09-05 12:41:31 -07:00
security merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-24 23:52:35 +02:00
services Backed out 4 changesets (bug 1348981) for Linux debug timeouts in test_system_update.js 2017-09-23 06:20:56 -07:00
servo servo: Merge #18609 - stylo: Animate font-size as NonNegativeLength (from Manishearth:fs-anim); r=emilio 2017-09-24 02:48:12 -05:00
startupcache Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
storage Bug 870698 - Part 8: Replace Equals(NS_LITERAL_CSTRING("")) with EqualsLiteral(""). r=erahm 2017-09-06 15:00:31 -07:00
taskcluster Bug 1402068 - move windows 10 browser-chrome from hardware to virtual machines. r=ahal 2017-09-25 10:18:45 -04:00
testing Bug 1301024 - Part 4: Update wpt and mochitest tests. r=smaug 2017-09-25 01:35:00 -04:00
third_party Bug 1402419 - Update dtoa-short ; r=xidorn 2017-09-22 13:47:28 -07:00
toolkit Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv. 2017-09-25 13:10:51 +10:00
tools Merge m-c to m-i 2017-09-21 20:49:43 -07:00
uriloader Bug 1400453 - yield thread between each call to gExternalProtocolService.getProtocolHandlerInfo; r=florian 2017-09-19 15:55:07 -07:00
view Bug 1398196, flush layout before hittesting when handling mousedown/up, r=ehsan 2017-09-14 23:26:24 +03:00
widget Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv. 2017-09-25 13:10:51 +10:00
xpcom Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm. 2017-09-22 14:35:46 +10:00
xpfe Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv. 2017-09-25 13:10:51 +10:00
.clang-format Bug 1399359 - Enable clang-format option SplitEmptyFunction to have empty constructor correctly placed r=andi,jya 2017-09-13 08:39:43 +02: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 1399449 - Convert devtools/client/responsivedesign/responsivedesign.jsm to a commonjs module. r=jryans 2017-09-13 14:33:58 +02:00
.eslintrc.js
.flake8 Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
.gdbinit
.gdbinit_python
.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 f7e9777221a34f9f23c2e4933307eb38b621b679 with with FIREFOX_NIGHTLY_57_END a=release DONTBUILD CLOSED TREE 2017-09-21 16:41:11 +02:00
.inferconfig
.lldbinit
.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
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2017-09-21 16:42:31 +02:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1390916 - Always use --track instead of --no-remove for install manifests; r=gps 2017-08-08 17:07:07 -04:00
README.txt
aclocal.m4
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 Bug 1399100 - fix client.py follow-up, r=kaie 2017-09-20 09:13:14 +02:00
configure.in
configure.py
gradle.properties
gradlew
mach
moz.build Bug 1383880: annotate source files with what they SCHEDULE; r=ahal 2017-08-25 19:31:54 +00:00
moz.configure Backed out changeset d9bc6c96c492 (bug 1399877) for build bustage a=backout 2017-09-15 14:53:20 -07:00
mozilla-config.h.in
npm-shrinkwrap.json Bug 1395879 - Remove espree/escope etc from the direct dependencies of eslint-plugin-mozilla since they are really peerDependencies supplied by the existing eslint peer. r=mossop 2017-09-01 11:27:33 +01:00
old-configure.in Bug 1281101 Part 3 - Remove MOZ_ENABLE_MASK_AS_SHORTHAND in old-configure.in. r=ted 2017-09-21 17:41:25 +08: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
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/