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
Go to file
Jamie Nicol 3b6922b0b9 Bug 1594446 - Clamp scale at 32k to avoid excessively large visible regions r=mattwoodrow
The size of the visible region, for either a painted layer or a webrender blob
image, is calculated from the building rects of the contained display items, in
local-space. This should be restricted to the display port, to prevent the
visible regions growing too large leading to excessive memory usage.

For items within large scale transforms, the local-space visible region should
be very small. However, as we do not allow fractional sizes, the size of the
visible region will be rounded up to at least 1. This means that when we convert
the region back to screen-space, we are multiplying the extremely large scale by
at least one, rather than by a much smaller fraction. This can result in
incredibly large visible regions, and was causing OOM crashes.

To avoid this, we clamp the maximum chosen scale for these layers/blob images to
32k. Layers affected by this problem should have a visible region with
dimensions of 1 or 2, so this limits the resulting screen-space size for
those to an acceptable value. Layers with visible regions sized greater than
that should not have scales anywhere near this large, so will not be affected.

Differential Revision: https://phabricator.services.mozilla.com/D55691

--HG--
extra : moz-landing-system : lando
2019-12-05 11:39:01 +00:00
.cargo Bug 1601233: Output of mach vendor rust r=rhunt 2019-12-05 04:26:50 +00:00
.vscode Bug 1594520 - Change directory before running mach in .vscode/tasks.json on Windows. r=jya 2019-11-14 10:35:12 +00:00
accessible Bug 1581719: Change QI assertion in AccessibleWrap::GetRemoteIAccessibleFor to a warning. r=MarcoZ 2019-12-02 06:13:55 +00:00
browser Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
build Bug 1601150 - Update cargo workspace hack. r=chmanchester 2019-12-05 04:32:15 +00:00
caps Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
chrome Bug 1597847 - rename remaining misc xul files: Revert chrome/test/unit/test_bug564667.js back to previous state. a=xpcshell-fix CLOSED TREE 2019-12-03 19:32:41 +01:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-12-02 11:59:11 +00:00
devtools Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
docshell Bug 1455716 - Followup to fix review comments. r=bzbarsky 2019-12-05 10:36:12 +00:00
dom Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
editor Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
extensions Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
gfx Bug 1599248 - Use local raster space when animating a double tap zoom. r=botond 2019-12-05 11:35:38 +00:00
gradle/wrapper Bug 1595926 - Don't use distribution256Sum until Android Studio is fixed. r=snorp 2019-11-14 17:04:32 +00:00
hal Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
image Bug 1601572 - Disable moz-icon-1.html on android. a=fix CLOSED TREE 2019-12-05 13:18:24 +02:00
intl Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
ipc Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
js Bug 1511958 - Implement i64<>JavaScript’s BigInt conversions proposal (part 2, runtime flag and testing function) 2019-12-04 13:30:06 +02:00
layout Bug 1594446 - Clamp scale at 32k to avoid excessively large visible regions r=mattwoodrow 2019-12-05 11:39:01 +00:00
media Bug 1588233 - P3: Update soundtouch to version 2.1.2. r=padenot 2019-11-26 00:42:19 +00:00
memory Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-11-26 14:35:02 +00:00
mfbt Bug 1590907 - Use a static assert in HashTable that doesn't depend on configure. r=sfink 2019-11-25 21:55:56 +00:00
mobile Bug 1482167 - Create --enable-fuzzing ASAN build job for Android x86-64 firefox. r=froydnj 2019-12-04 21:44:06 +00:00
modules Bug 1600998 - Remove layout.css.xul-box-display-values.survive-blockification.enabled. r=dholbert 2019-12-05 06:12:47 +00:00
mozglue Bug 1598650: Copy operand for mov byte ptr, imm8 in DLL interceptor r=aklotz 2019-12-03 22:47:58 +00:00
netwerk Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
nsprpub Bug 1591887 - Uplift NSPR 4.24 RTM, only version number changes. r=jcj 2019-12-02 18:27:33 +00:00
other-licenses
parser Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
python Backed out 3 changesets (bug 1595218) for build bustages. CLOSED TREE 2019-12-05 02:53:04 +02:00
remote bug 1600111: remote: make nsIRemoteAgent.listen() sync r=remote-protocol-reviewers,maja_zf 2019-12-04 11:57:13 +00:00
security Bug 1470591 - Part 2: Provide methods to recreate a delegated forker. r=gsvelto 2019-12-05 00:03:52 +00:00
services Bug 1597868 - refresh the fxa device list each 2 hours instead of each sync. r=eoger 2019-12-03 16:07:46 +00:00
servo Bug 1600998 - Remove layout.css.xul-box-display-values.survive-blockification.enabled. r=dholbert 2019-12-05 06:12:47 +00:00
startupcache Bug 1587112 - Make asserts in StartupCache::LoadArchive explicit r=njn 2019-10-22 03:15:18 +00:00
storage Bug 1576593 - P2 - Change the way for tunneling quota information to SQLite; r=janv 2019-10-25 12:02:10 +00:00
taskcluster Backed out 3 changesets (bug 1595218) for build bustages. CLOSED TREE 2019-12-05 02:53:04 +02:00
testing Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
third_party Bug 1601544 - Upgrade mozversion to semver 0.9. r=whimboo 2019-12-05 09:21:58 +00:00
toolkit Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
tools Backed out changeset 52af8765cb21 (bug 1589700) for perma fails on browser_Telemetry_numberOfSiteOrigins.js. CLOSED TREE 2019-12-04 23:48:27 +02:00
uriloader Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
view Bug 1597847, rename remaining misc xul files from within /view, /gfx, /extensions, and /testing to .xhtml format r=marionette-reviewers,bgrins,whimboo,gbrown 2019-12-02 19:16:22 +00:00
widget Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown 2019-12-05 11:07:10 +00:00
xpcom Bug 1470591 - Part 6: Create a fork server process. r=gsvelto 2019-12-05 00:02:40 +00:00
xpfe/appshell Bug 1455716 - Followup to fix review comments. r=bzbarsky 2019-12-05 10:36:12 +00:00
.arcconfig
.clang-format
.clang-format-ignore Bug 1592302: Part 1: Import regexp directory from v8 r=mgaudet,mhoye 2019-11-28 18:48:23 +00:00
.cron.yml Bug 1597110 - define in-tree cron job for scheduling action tasks for starting an automatic release. r=mtabara,rail 2019-11-29 15:10:42 +00:00
.eslintignore Bug 1589334 - Enable ESLint for all of devtools/shared (manual changes). r=Standard8,jdescottes,nchevobbe 2019-12-03 08:39:59 +00:00
.eslintrc.js Bug 1597847, rename remaining misc xul files from within /view, /gfx, /extensions, and /testing to .xhtml format r=marionette-reviewers,bgrins,whimboo,gbrown 2019-12-02 19:16:22 +00:00
.flake8 Bug 1583197. Rename 'cold' conditioned profile to 'settled'. r=tarek 2019-11-26 09:06:32 +00:00
.gdbinit
.gdbinit_python
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1588223 - Use many domains in iframes for tabswitch test r=stephendonner,perftest-reviewers,rwood 2019-11-25 18:31:36 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1588223 - Use many domains in iframes for tabswitch test r=stephendonner,perftest-reviewers,rwood 2019-11-25 18:31:36 +00:00
.hgtags No bug - Tagging mozilla-central 6d3a96d7f2f44e941ef6b61bfa10eed0389b142f with FIREFOX_NIGHTLY_72_END a=release DONTBUILD CLOSED TREE 2019-12-02 11:57:37 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml Bug 1589706: [firefox-ci] Use AWS Provider-based decision worker; r=Callek 2019-10-24 00:54:12 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal 2019-10-04 20:55:11 +00:00
Cargo.lock Bug 1601544 - Upgrade mozversion to semver 0.9. r=whimboo 2019-12-05 09:21:58 +00:00
Cargo.toml Bug 1601233: Bump Cranelift to 497b4e1ca1d33dfd54314366d8e3a27a9fea225f; r=rhunt 2019-12-05 04:26:50 +00:00
client.mk
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-12-02 11:59:11 +00:00
configure.in
configure.py Bug 1593948 - Touch clobber in configure.py instead of clobber.py; r=firefox-build-system-reviewers,chmanchester 2019-11-19 21:49:13 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LEGAL
LICENSE
mach Bug 1598839 - run mach environment with python3 r=ahal 2019-11-25 18:27:28 +00:00
Makefile.in Bug 1540276: Migrate authenticode signing to autograph r=Callek,mshal 2019-09-30 13:57:32 +00:00
moz.build Bug 1601076 - Fix some broken BUG_COMPONENTS in moz.build files; r=jmaher 2019-12-04 13:55:45 +00:00
moz.configure Bug 1470591 - Part 6: Create a fork server process. r=gsvelto 2019-12-05 00:02:40 +00:00
mozilla-config.h.in
old-configure.in Bug 1580234 - Disable the custom linker when mozjemalloc is disabled. r=froydnj 2019-11-22 01:04:20 +00:00
package-lock.json
package.json
README.txt
settings.gradle Bug 1598010 - Move examples into mozilla-central r=agi 2019-11-22 13:30:57 +00:00
substitute-local-geckoview.gradle
test.mozbuild

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.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.