Gecko engine for Wine
Go to file
Gaia Pushbot f8aba5da46 Bumping gaia.json for 2 gaia-central revision(s)
========

https://hg.mozilla.org/integration/gaia-central/rev/9621115bda40
Author: Fabien Cazenave <fabien@cazenave.cc>
Desc: Merge pull request #10709 from fabi1cazenave/l10nOptim-bug853933

Bug 853933 - Don't inline all locales as JSON in the HTML, r=ochameau

========

https://hg.mozilla.org/integration/gaia-central/rev/cf0c69f54763
Author: Fabien Cazenave <fabien@cazenave.cc>
Desc: Bug 853933 - Don't inline all locales as JSON in the HTML

Currently, in order to ensure that apps are translated before first paint, all l10n resources are included as one multi-locales JSON dictionary, which is serialized in an inline `<script>` element for each HTML document.  This works fine when shipping few locales, but it can increase the document size quite badly for 60+ locales, thus delaying the startup time very significantly.

This patch allows to support 60+ locales more easily by having:
* one minimal JSON dictionary per locale in each HTML file;
* one extensive JSON dictionary per locale in each webapp.

The inline JSON dictionary is split on a per-locale basis (= one `<script>` node per supported locale) and only contains the l10n strings that are required to translate the HTML document: the "startup cost" of each locale becomes neglectable, and it removes the risk of high RAM consumption when parsing a giant multi-locale JSON at startup.

All l10n resources that are not declared in the HTML document are concatenated in a single JSON dictionary per locale: this reduces the number of disk I/O to load l10n resources and does not increase the total disk size of each webapp.  To enable this, this patch implements a `{{locale}}` quasi-litteral in the HTML markup that is used to declare l10n resources:
  <link rel="prefetch" type="application/l10n" href="/{{locale}}.json" />
where `{{locale}}` is replaced by the value of `navigator.language`.

Note that this latter optimization is only interesting for apps that wait for the `localized` event to start. With the inline JSON dictionary for the declarative content and the `mozL10n.localize()` method, most apps could probably stop waiting for this `localized` event now.
2013-07-04 06:40:22 -07:00
accessible Bug 877974 - reorg getTextAtOffset for line boundary, r=tbsaunde 2013-07-02 08:57:29 -04:00
addon-sdk Backed out 6d349e5ae0ed (bug 889157) for JP test bustage 2013-07-01 18:32:34 -07:00
b2g Bumping gaia.json for 2 gaia-central revision(s) 2013-07-04 06:40:22 -07:00
browser Merge fx-team and m-c. 2013-07-02 15:13:58 -04:00
build Bug 889669 - Use Python 3 compatible octal syntax; r=ted 2013-07-02 17:32:38 -07:00
caps Bug 406541 - Split NS_CheckStrictFileOriginPolicy out of nsPrincipal::CheckMayLoad. r=bs 2013-07-02 16:40:39 -07:00
chrome
config bug 886526 - remove nsStaticComponents.{h,cpp} r=bsmedberg 2013-06-15 05:50:25 -04:00
content Backed out changeset d155557b651c (bug 888323) for bustage. 2013-07-02 14:15:39 -04:00
db/sqlite3
docshell Backed out changeset d155557b651c (bug 888323) for bustage. 2013-07-02 14:15:39 -04:00
dom Bug 884253 - Define new error messages for Bluetooth profiles, r=gyeh 2013-07-04 17:45:06 +08:00
editor Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch #4); r=joey 2013-07-01 11:34:30 -04:00
embedding Bug 885598: Mark a bunch of subdirectories in /embedding as FAIL_ON_WARNINGS. r=bsmedberg 2013-07-01 22:50:35 -07:00
extensions bug 887854 - remove most useage of pratom.h r=mounir, mcmanus, jrmuizel 2013-06-16 03:09:07 -04:00
gfx Backed out changeset cff8971a6519 (bug 882523) for Linux reftest-ipc crashes. 2013-07-03 10:14:11 -04:00
hal Bug 877888 - Alarm API type checks date to prevent millisecond loss. r=nsm 2013-07-02 23:59:58 +05:30
image bug 870407: move CMMSRCS to mozbuild (file batch #3). r=mshal 2013-07-02 17:09:08 -04:00
intl bug 887854 - remove a bunch of useless includes of pratom.h in intl/ r=ms2ger 2013-06-27 13:04:14 -04:00
ipc Bug 880917 - Add an API to mutate the version on the compartment and use it from the shells. r=luke 2013-06-29 09:11:19 -06:00
js Bug 888579 - Remove some code that handled WN Nodes; r=bholley 2013-07-01 09:14:36 +02:00
layout Backed out changeset d155557b651c (bug 888323) for bustage. 2013-07-02 14:15:39 -04:00
media Back out bug 886499 for b2g build bustage. 2013-07-02 09:49:05 -07:00
memory Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn. 2013-06-23 14:03:39 +02:00
mfbt Bug 820686 - Follow-up: s/MOZ_ASSUME_NOT_REACHED/MOZ_ASSUME_UNREACHABLE/. rs=waldo 2013-06-28 19:20:12 -07:00
mobile Merge m-c to s-c 2013-07-02 14:59:21 -07:00
modules Merge birch and m-c. 2013-07-02 15:12:40 -04:00
mozglue Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below) 2013-06-28 18:38:30 -07:00
netwerk Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke 2013-06-29 09:11:18 -06:00
nsprpub
other-licenses Bug 848491 - Update skia-npapi to use new Skia APIs r=mattwoodrow 2013-04-09 15:57:38 -04:00
parser Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen 2013-06-28 23:13:23 -04:00
probes
profile
python Bug 889963 - Unbust |mach build| when build terminal isn't present; r=ted 2013-07-03 11:59:58 -07:00
rdf Backed out changeset d155557b651c (bug 888323) for bustage. 2013-07-02 14:15:39 -04:00
security No bug, Automated HSTS preload list update from host bld-linux64-ec2-324 - a=hsts-update 2013-07-03 12:25:37 -07:00
services Bug 889413 - FormWrapper._finalize is not a function. r=markh 2013-07-02 15:09:17 -07:00
startupcache Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn. 2013-06-23 14:03:39 +02:00
storage bug 887854 - remove most useage of pratom.h r=mounir, mcmanus, jrmuizel 2013-06-16 03:09:07 -04:00
testing Bug 888506 - Check that the start_time attribute exists before trying to use it. r=jgriffin 2013-07-01 12:37:21 +02:00
toolkit Merge m-c to s-c 2013-07-02 14:59:21 -07:00
tools Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch #4); r=joey 2013-07-01 11:34:30 -04:00
uriloader Bug 874080 - Add an early return to nsExternalHelperAppService::GetTypeFromExtension when called with an empty extension parameter. r=paolo 2013-07-02 15:49:06 -04:00
view
webapprt Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch #4); r=joey 2013-07-01 11:34:30 -04:00
widget Backed out changeset cff8971a6519 (bug 882523) for Linux reftest-ipc crashes. 2013-07-03 10:14:11 -04:00
xpcom Backed out changeset d155557b651c (bug 888323) for bustage. 2013-07-02 14:15:39 -04:00
xpfe
xulrunner
.gdbinit
.gitignore
.hgignore
.hgtags
aclocal.m4
Android.mk
AUTHORS
client.mk
client.py
CLOBBER Bug 848491 - Touch CLOBBER for the Skia update. 2013-07-03 10:15:51 -04:00
configure.in Merge m-c to s-c 2013-07-02 14:59:21 -07:00
LEGAL
LICENSE
mach
Makefile.in Bug 884587 - Part 1: Perform file removal with purge manifests; r=glandium 2013-06-25 11:04:03 -07:00
moz.build
mozilla-config.h.in
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:

    http://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:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://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 http://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:

    ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
            - or -
    http://nightly.mozilla.org/