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
Перейти к файлу
Daniel Holbert 080e18fa47 Bug 1663722: Make nsPageSequenceFrame gracefully handle SizeToContent calls. r=emilio
nsPageSequenceFrame does a thing where it grows its desired size to fit the
AvailableISize and ComputedBSize (under the assumption that those are the
actual dimensions of our scrollport, which it wants to make maximal use of).

This behavior causes trouble when it's reflowed under the privileged
'sizeToContent' JS API.  That API makes us reflow with nscoord_MAX as the
viewport's ComputedBSize(), and this nscoord_MAX value gets passed down to be
the nsPageSequenceFrame's ComputedBSize as well.  When we reach the code in
question, we dutifully grow the desired size to that bogus huge value, which is
clearly wrong.

This patch addresses this issue by simply declining to grow the desired size in
the scenario where ComputedBSize() is unconstrained.  This leaves us with
reasonable values for our desired size (which are actually based on the
content, which makes it the right thing to do for the purpose of a
SizeToContent() call).

Differential Revision: https://phabricator.services.mozilla.com/D135762
2022-01-13 06:08:51 +00:00
.cargo WIP: Bug 1747750 - Return null WebGPU adapter r=jimb 2022-01-12 15:34:55 +00:00
.vscode
accessible Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
browser Backed out changeset 26a792be5ec3 (bug 1745720) for causing failures complaining about Event.cpp. CLOSED TREE 2022-01-13 03:19:10 +02:00
build Bug 1748820 - land NSS 44e6341be5e8 UPGRADE_NSS_RELEASE, r=beurdouche 2022-01-12 10:40:38 +00:00
caps Bug 1590068 - Add fuzzing target for StructuredCloneData. r=baku,sfink 2021-12-08 18:59:02 +00:00
chrome Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi 2021-12-23 20:29:07 +00:00
config Bug 1747298 - Use CXX for Cargo linking when necessary. r=glandium 2022-01-11 11:26:39 +00:00
devtools Bug 1746368 - [devtools] Add blackbox checks for specfic paused frame location lines r=ochameau 2022-01-12 23:44:19 +00:00
docs Bug 1696382: Add IPC in-tree docs r=nika,gerard-majax,ipc-reviewers 2022-01-13 00:10:20 +00:00
docshell Bug 1748874 - Part 3: Mark the decl of SessionStoreRestoreData::RestoreInto as CAN_RUN_SCRIPT r=masayuki 2022-01-11 11:52:27 +00:00
dom Backed out changeset 26a792be5ec3 (bug 1745720) for causing failures complaining about Event.cpp. CLOSED TREE 2022-01-13 03:19:10 +02:00
editor Bug 1747008 - Make `HTMLEditor::OnEndHandlingTopLevelEditSubActionInternal` stop stripping empty inline elements if they may be inserted intentionally r=m_kato 2022-01-07 03:08:41 +00:00
extensions Bug 1748210 - Always release GetNextTokenCompleteEvent on main thread, r=necko-reviewers,valentin 2022-01-12 03:59:47 +00:00
gfx WIP: Bug 1747750 - Return null WebGPU adapter r=jimb 2022-01-12 15:34:55 +00:00
gradle/wrapper Bug 1724480 - Upgrade JDK to Java 17. r=glandium,ahal,calu 2022-01-11 19:16:01 +00:00
hal Backed out 2 changesets (bug 1748981) for causing geckoview test failures. CLOSED TREE 2022-01-12 14:15:25 +02:00
image Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi 2021-12-23 20:29:07 +00:00
intl Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio 2022-01-07 20:35:15 +00:00
ipc Bug 1696382: Document IPDL [Nested] Annotations r=gerard-majax,nika 2022-01-13 00:10:21 +00:00
js Bug 1708743 - Add javascript.options.wasm_simd_avx preference. r=jandem 2022-01-12 22:31:30 +00:00
layout Bug 1663722: Make nsPageSequenceFrame gracefully handle SizeToContent calls. r=emilio 2022-01-13 06:08:51 +00:00
media Backed out changeset fe2b37539282 (bug 1749780) for causing build bustages. CLOSED TREE 2022-01-13 04:12:03 +02:00
memory Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges 2021-12-30 20:56:43 +00:00
mfbt Bug 1748874 - Part 5: Require CAN_RUN_SCRIPT to be at the first declaration r=andi 2022-01-11 11:52:27 +00:00
mobile Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen 2022-01-12 20:52:58 +00:00
modules Bug 1708743 - Add javascript.options.wasm_simd_avx preference. r=jandem 2022-01-12 22:31:30 +00:00
mozglue Bug 1749498 - PrintUsage doesn't exit anymore, exits are done explicitly - r=canaltinova 2022-01-12 12:16:59 +00:00
netwerk Merge mozilla-central to autoland. CLOSED TREE 2022-01-12 23:40:05 +02:00
nsprpub Bug 1743566 - Finalize NSPR version number (no code change). r=glandium UPGRADE_NSPR_RELEASE DONTBUILD 2021-12-18 01:13:20 +00:00
other-licenses Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi 2021-10-01 09:01:27 +00:00
parser Bug 1748482 - Check XML parser for brokenness in various methods. r=smaug 2022-01-05 13:43:35 +00:00
python Bug 1743469 - Target android 31. r=jgraham,jnicol,calu 2022-01-11 19:16:03 +00:00
remote Bug 1748845 - Update source-relative links in remote docs, r=firefox-source-docs-reviewers,webdriver-reviewers,sylvestre,whimboo 2022-01-11 10:48:20 +00:00
security Backed out changeset 28880b7218fc (bug 1736605) for causing Xpcshell failrues at test_TelemetryEnvironment.js. CLOSED TREE 2022-01-13 00:44:32 +02:00
services Merge autoland to mozilla-central a=merge 2022-01-10 23:30:47 +02:00
servo Bug 1746084 - Avoid generating InterpolateMatrix operations if there are no size dependencies. r=hiro 2022-01-05 19:10:28 +00:00
startupcache Backed out 3 changesets (bug 1724509) for causing marionette failures. CLOSED TREE 2021-10-06 03:57:57 +03:00
storage Bug 1748718 - Part 2: Use the specified type for rust xpidl constants, r=emilio 2022-01-07 20:35:15 +00:00
taskcluster Bug 1749652 - Fix javadoc path in gv-docs. r=calu 2022-01-12 16:37:16 +00:00
testing Bug 1740702 - Ensure grid's cached measurement won't prevent reflow from happending when its subtree is dirty r=dholbert 2022-01-12 21:51:45 +00:00
third_party Backed out changeset fe2b37539282 (bug 1749780) for causing build bustages. CLOSED TREE 2022-01-13 04:12:03 +02:00
toolkit Bug 1749501 - Revert bug 1392272, r=necko-reviewers,dragana 2022-01-13 01:24:49 +00:00
tools Bug 1749498 - PrintUsage doesn't exit anymore, exits are done explicitly - r=canaltinova 2022-01-12 12:16:59 +00:00
uriloader Backed out 2 changesets (bug 1745650) for causing mochitest failures on browser_slow_download.js CLOSED TREE 2022-01-07 08:07:51 -05:00
view Bug 1737044 - Include pointer and frame in nsWindow logging. r=stransky 2021-10-21 14:02:30 +00:00
widget Backed out changeset 28880b7218fc (bug 1736605) for causing Xpcshell failrues at test_TelemetryEnvironment.js. CLOSED TREE 2022-01-13 00:44:32 +02:00
xpcom Bug 1708743 - Add javascript.options.wasm_simd_avx preference. r=jandem 2022-01-12 22:31:30 +00:00
xpfe/appshell Bug 1539884 - Part 36: Mark AppWindow::ExecuteCloseHandler as CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:26 +00:00
.arcconfig
.babel-eslint.rc.js Bug 1725934 - Remove unnecessary babel plugin, and update node modules to the latest versions. r=Mardak 2021-08-18 07:44:47 +00:00
.clang-format
.clang-format-ignore Bug 1719554 - Unify unicode::Script as intl::Script; r=platform-i18n-reviewers,gregtatum 2021-12-06 18:15:50 +00:00
.cron.yml Bug 1738908 - remove esr78 references. r=releng-reviewers,mtabara DONTBUILD 2021-11-02 16:47:50 +00:00
.eslintignore Bug 1726804 - Refactor PROCESS_TYPE_* from nsICrashService r=gsvelto 2021-11-19 14:02:56 +00:00
.eslintrc.js Bug 1746751 - Use `ChromeUtils.import` with one parameter in blocklist test code. r=robwu DONTBUILD 2022-01-07 10:06:51 +00:00
.flake8 Bug 1731542 - remove `infer` from our static-analysis pipeline. r=static-analysis-reviewers,marco 2021-09-20 12:47:44 +00:00
.git-blame-ignore-revs Bug 1735638 - Add Bug 1571899 to annotate/blame ignore revisions. r=glandium DONTBUILD 2021-10-14 16:02:46 +00:00
.gitattributes
.gitignore Bug 1749650 - Ignore clangd index files in gecko root folder. r=firefox-build-system-reviewers,andi 2022-01-12 17:20:04 +00:00
.hg-annotate-ignore-revs Bug 1735638 - Add Bug 1571899 to annotate/blame ignore revisions. r=glandium DONTBUILD 2021-10-14 16:02:46 +00:00
.hg-format-source
.hgignore Bug 1749650 - Ignore clangd index files in gecko root folder. r=firefox-build-system-reviewers,andi 2022-01-12 17:20:04 +00:00
.hgtags No bug - tagging 84580a18f7004d023fe9666a0f01c1b97b03c355 with FIREFOX_NIGHTLY_97_END a=release DONTBUILD CLOSED TREE 2022-01-10 17:50:29 +00:00
.lando.ini Bug 1740791: temporarily disable autoformatting r=sheehan DONTBUILD 2021-11-16 16:49:41 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml Bug 1732723 - Rename "taskgraph" Python module to "gecko_taskgraph". r=jmaher 2021-09-30 09:50:08 -04:00
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-12-06 19:18:29 +00:00
Cargo.lock WIP: Bug 1747750 - Return null WebGPU adapter r=jimb 2022-01-12 15:34:55 +00:00
Cargo.toml Bug 1730004 - Add a crate with diagnostic / nightly asserts. r=nika,emilio 2022-01-07 21:24:45 +00:00
GNUmakefile
LICENSE
Makefile.in Bug 1744325 - Remove outdated `update-packaging` cruft. r=bhearsum,firefox-build-system-reviewers,glandium 2021-12-10 17:31:08 +00:00
README.txt
aclocal.m4 Bug 1747775 - Remove now unused pkg.m4. r=firefox-build-system-reviewers,mhentges 2021-12-29 22:36:53 +00:00
build.gradle Bug 1749729 - Do not include -omni suffix in geckoview-exoplayer2. r=jonalmeida 2022-01-12 18:04:09 +00:00
client.mk Bug 1734594 - Terminate the sccache server in cases where submakes end in an error. r=firefox-build-system-reviewers,andi 2021-10-08 09:30:48 +00:00
client.py
configure.in
configure.py Bug 1747332 - Move build environment checks to configure.py. r=firefox-build-system-reviewers,andi 2021-12-23 20:47:47 +00:00
gradle.properties Bug 1727438 - Increase java max heap to 32G. r=nalexander,owlish 2021-08-31 20:53:08 +00:00
gradlew
gradlew.bat
mach Bug 1740123: Allow invoking Mach outside of MozillaBuild r=glandium 2022-01-06 06:49:47 +00:00
mach.cmd Bug 1740123: Allow invoking Mach outside of MozillaBuild r=glandium 2022-01-06 06:49:47 +00:00
mach.ps1 Bug 1740123: Allow invoking Mach outside of MozillaBuild r=glandium 2022-01-06 06:49:47 +00:00
moz.build Bug 1734831 - fx doc: import the gtest doc from mdn archive + refresh r=gcp DONTBUILD 2021-10-08 19:53:53 +00:00
moz.configure Bug 1730004 - Add a crate with diagnostic / nightly asserts. r=nika,emilio 2022-01-07 21:24:45 +00:00
mozilla-config.h.in Bug 1746991 - Avoid warning noise from __STDC_CONSTANT_MACROS being redefined. r=firefox-build-system-reviewers,andi 2021-12-21 21:22:26 +00:00
old-configure.in Bug 1747970 - Remove check for fdatasync. r=firefox-build-system-reviewers,mhentges 2021-12-31 06:50:29 +00:00
package-lock.json Bug 1736781 - Update eslint-plugin-no-unsanitized to version 3.2.0 r=Standard8 2021-10-21 13:08:11 +00:00
package.json Bug 1736781 - Update eslint-plugin-no-unsanitized to version 3.2.0 r=Standard8 2021-10-21 13:08:11 +00:00
settings.gradle Bug 1745246 - Move org/mozilla/thirdparty to it's own module. r=calu 2022-01-11 19:16:02 +00:00
substitute-local-geckoview.gradle Bug 1745246 - Allow specifying multiple maven artifacts from build. r=calu,ahal 2022-01-11 19:16:01 +00:00
test.mozbuild

README.txt

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

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


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 Firefox developers for
testing, may be buggy.