Граф коммитов

794832 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 80ef7350dc Bug 1769279 - Disable FT_LOAD_COLOR when getting glyph metrics for fonts that include an SVG table. r=lsalzman
See https://gitlab.freedesktop.org/freetype/freetype/-/issues/1156
for the issue this is addressing.

Differential Revision: https://phabricator.services.mozilla.com/D146318
2022-05-14 06:36:43 +00:00
Iulian Moraru ce2f603260 Merge mozilla-central to autoland on a CLOSED TREE 2022-05-14 07:11:35 +03:00
Iulian Moraru cdb2004ea5 Merge autoland to mozilla-central. a=merge 2022-05-14 07:02:01 +03:00
Iulian Moraru cf3fad08ff Backed out 5 changesets (bug 1769182) for causing mochitest failures on browser_sandbox_test.js. CLOSED TREE
Backed out changeset f5b71a28f28b (bug 1769182)
Backed out changeset 7a64faec004f (bug 1769182)
Backed out changeset c7833370362a (bug 1769182)
Backed out changeset b91adae9bb59 (bug 1769182)
Backed out changeset cf7bb9b7414d (bug 1769182)
2022-05-14 05:20:37 +03:00
Iulian Moraru aa0ddc72c9 Backed out 3 changesets (bug 1756003) for causing multiple thread sanitizer failures. CLOSED TREE
Backed out changeset cf1af3ce0798 (bug 1756003)
Backed out changeset 672e8694ef7d (bug 1756003)
Backed out changeset 3b6f96fb26fa (bug 1756003)
2022-05-14 04:00:29 +03:00
Jed Davis accee09e1b Bug 1769182 - Allow the RDD process to use EGL under X11 on Linux. r=gcp
This patch mostly turns on the features set up by the earlier patches:
allow connecting to the X server and reading various related things
(.Xauthority, GPU device info in sysfs, etc.).  It also turns off Mesa's
shader cache in the RDD process; that shouldn't be needed here, and
disabling it lets us avoid dealing with a few things in the sandbox
policy that we'd rather not (e.g., `getpwuid`).

Differential Revision: https://phabricator.services.mozilla.com/D146275
2022-05-14 00:42:56 +00:00
Jed Davis 79e1be12f4 Bug 1769182 - Factor out the X11/Mesa-related parts of Linux sandbox file policies. r=gcp
This patch moves a lot of text but the idea is relatively simple and
no functional change is intended: factor out the parts of the content
sandbox policy needed to create and use an EGL context under X11.
(The `AddDriPaths` function already has some of the dependencies in a
conveniently separated form, but there are others.)

Differential Revision: https://phabricator.services.mozilla.com/D146274
2022-05-14 00:42:56 +00:00
Jed Davis c92c41aa71 Bug 1769182 - Allow send/recv and sendto/recvfrom in the common Linux sandbox policy. r=gcp
These syscalls (at least send/recv) are used by X11 client libraries, and
allowing them doesn't really change anything about security or attack
surface, because they're strict subsets of sendmsg/recvmsg which we
already allow everywhere for use by IPC.  So, this patch allows them in
all process types instead of only content.

Differential Revision: https://phabricator.services.mozilla.com/D146273
2022-05-14 00:42:56 +00:00
Jed Davis 9e9f783fb4 Bug 1769182 - Factor out connect() brokering in the Linux sandbox policies. r=gcp
We're going to want to let the RDD process make a (brokered) connection
to a local X server, but the seccomp-bpf plumbing for that mostly lives
in the content process sandbox policy.  This moves it into the common
policy, and subclasses can opt in.

Differential Revision: https://phabricator.services.mozilla.com/D146272
2022-05-14 00:42:55 +00:00
Jed Davis 5b1c92943d Bug 1769182 - Refactor seccomp-bpf sandbox policy constructors. r=gcp
The arguments to the SandboxPolicyCommon contructor will get more
complicated as more optional features are added (e.g., the one added in
the next patch), and they're basically just mapped to boolean member
variables, so this patch lets the subclasses set them directly, to keep
things simpler and more readable.

Differential Revision: https://phabricator.services.mozilla.com/D146271
2022-05-14 00:42:55 +00:00
Daniel Holbert 51a6b4f252 Bug 1769011: Remove set-but-never-used variable "cellCount" from table layout method nsCellMap::Dump. r=emilio
This patch doesn't impact behavior; it's just dead code removal.

Differential Revision: https://phabricator.services.mozilla.com/D146353
2022-05-13 23:56:04 +00:00
Magnus Melin d5ddd20984 Bug 1768529 - use default param value for hideTopSitesWithSearchParam. r=adw
Thunderbird doesn't have the pref => test failures:
https://treeherder.mozilla.org/logviewer?job_id=377954876&repo=comm-central&lineNumber=5509

Differential Revision: https://phabricator.services.mozilla.com/D146337
2022-05-13 23:44:50 +00:00
Nika Layzell 5b0038fdd4 Bug 1743020 - Part 5: Eliminate FakeCopyable, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D145693
2022-05-13 23:43:53 +00:00
Nika Layzell a035fb975b Bug 1743020 - Part 4: Use MoveOnlyFunction in DataPipe, r=ipc-reviewers,mccr8
This is mostly a simple use-case for the type which I was aware of and
could use to ensure it builds correctly.

Differential Revision: https://phabricator.services.mozilla.com/D145692
2022-05-13 23:43:53 +00:00
Nika Layzell 85884b7fca Bug 1743020 - Part 3: Export mozilla::MoveOnlyFunction based on function2, r=glandium
A custom defintion wrapping fu2::function_base is used to customize the
inline buffer's size and alignment to make it compatible with nsTArray.
Without the custom wrapper, `alignof(max_align_t)` is used, which is
larger than nsTArray's max alignment on some platforms.

Differential Revision: https://phabricator.services.mozilla.com/D145691
2022-05-13 23:43:52 +00:00
Nika Layzell 2f30490823 Bug 1743020 - Part 2: Vendor the function2 library, r=glandium,mhoye
The function2 library is a header-only library which provides support
for defining move-only function types, similar to the proposed
std::move_only_function in C++23, but with support for additional
customization.

This appears to be the first time we've vendored code using the boost
license, so I've added it to license.html and moz_yaml.py, and have
requested review to ensure it is OK to use code with this license.

Differential Revision: https://phabricator.services.mozilla.com/D145690
2022-05-13 23:43:52 +00:00
Nika Layzell 960eaeae92 Bug 1743020 - Part 1: Opt third-party paths out of NoExplicitMoveConstructor checker, r=andi
The function2 library uses an explicit move constructor internally,
which would trigger this checker, and cause a build failure.

Differential Revision: https://phabricator.services.mozilla.com/D145689
2022-05-13 23:43:51 +00:00
Daisuke Akatsuka 2155a6e0d3 Bug 1597791: Introduce autoFillAdaptiveHistory nimbus variable. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D145704
2022-05-13 22:46:37 +00:00
Daisuke Akatsuka 6869007716 Bug 1597791: Add telemetry for adaptive history autofill. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D144685
2022-05-13 22:46:36 +00:00
Daisuke Akatsuka 8c347e99bb Bug 1597791: Support adaptive history autofill. r=adw,mak
Differential Revision: https://phabricator.services.mozilla.com/D144393
2022-05-13 22:46:36 +00:00
Kagami Sascha Rosylight 31b6df6028 Bug 1766038 - Prefer full qualified types over typedefs for JS::Handle/Rooted r=andi,sfink
Differential Revision: https://phabricator.services.mozilla.com/D145802
2022-05-13 22:45:51 +00:00
Tooru Fujisawa bb1d312b22 Bug 1769029 - Support ESM loaded by shim in Cu.loadedModules. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D146169
2022-05-13 22:02:41 +00:00
Tooru Fujisawa 980d04aebc Bug 1768922 - Support ESM loaded by shim in Cu.isModuleLoaded. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D146166
2022-05-13 22:02:40 +00:00
Tooru Fujisawa b5003aa9b1 Bug 1766976 - Add testcase that checks JSM import works even after ESM-ification. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D145219
2022-05-13 22:02:40 +00:00
Tooru Fujisawa 8e4f247177 Bug 1768060 - Add a wrapper for Cu.import return value that supports lexical variable. r=jonco,Standard8
This wrapper exposes all lexical variables in Cu.import return value,
that allows us removing `this.foo = foo;` hack, in bug 1610653 patches,
without affecting the not-in-tree consumer.

Differential Revision: https://phabricator.services.mozilla.com/D145938
2022-05-13 22:02:40 +00:00
Tooru Fujisawa d39eaa62a9 Bug 1766761 - Part 4: Add a shim for Cu.import/ChromeUtils.import with ESM-ified module. r=jonco,Standard8
This shim redirects Cu.import("foo.jsm") to ChromeUtils.importModule("foo.mjs")
if foo.jsm is already renamed to foo.mjs.

This de-optimizes ESM component's global `var`s, in order to expose all
variables in `ModuleEnvironmentObject`, and return those variables from
`Cu.improt`'s return value.

In contrast to normal Cu.import, the return value of shim version exposes
all non-exported lexical variables.
Bug 1768060 patch aligns the normal Cu.import to expose them as well,
so that `this.foo = foo;` hack can be removed in bug 1610653.

Once not-in-tree `Cu.import` consumers are gone and `Cu.import` is removed,
this shim and the de-optimization for the `var` can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D145784
2022-05-13 22:02:39 +00:00
Tooru Fujisawa dc80f1c03e Bug 1766761 - Part 3: Add public API for getting module from namespace, and getting module environment. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D146035
2022-05-13 22:02:39 +00:00
Tooru Fujisawa e193726d86 Bug 1766761 - Part 2: Rename shell GetModuleEnvironment function. r=jonco
In order to add public API that returns module's environment, shell-only
function GetModuleEnvironment needs to be renamed.

Differential Revision: https://phabricator.services.mozilla.com/D146034
2022-05-13 22:02:38 +00:00
Tooru Fujisawa 4689a44e09 Bug 1766761 - Part 1: Add compile option to de-optimize module global variables. r=jonco
This is necessary for putting all global `var`s in `ModuleEnvironmentObject`,
instead of local slot, so that they're accessible in Part 4 patch.

Differential Revision: https://phabricator.services.mozilla.com/D146033
2022-05-13 22:02:38 +00:00
Nick Alexander cdeb39978a Bug 1768930 - Shutdown Remote Worker Service thread only after initialization. r=jstutte
This avoids a crash when the main process exits very quickly, as is
usual in `--backgroundtask ...` mode.

Differential Revision: https://phabricator.services.mozilla.com/D146227
2022-05-13 20:12:29 +00:00
Tooru Fujisawa 7598035620 Bug 1765737 - Part 2: Pass an empty object instead of global this to Cu.cloneInto in toolkit/components/telemetry/. r=chutten
Depends on D144783

Differential Revision: https://phabricator.services.mozilla.com/D144784
2022-05-13 20:12:28 +00:00
Tooru Fujisawa 106f7b6830 Bug 1765737 - Part 1: Pass an empty object instead of global this to Cu.cloneInto in toolkit/components/extensions/. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D144783
2022-05-13 20:12:27 +00:00
Tooru Fujisawa 63f9ec92bc Bug 1765319 - Part 5: Stop using global this to access global variable in toolkit/. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D144135
2022-05-13 20:12:27 +00:00
Tooru Fujisawa be94355f17 Bug 1765319 - Part 4: Stop using global this to access global variable in services/. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D144134
2022-05-13 20:12:27 +00:00
Tooru Fujisawa 2a79251616 Bug 1765319 - Part 3: Use globalThis in deserialize. r=mixedpuppy
The deserialize parameter is used only for getting global object, and in the JSM
context, it's the shared global.  So directly passing globalThis works.

Differential Revision: https://phabricator.services.mozilla.com/D144133
2022-05-13 20:12:26 +00:00
Tooru Fujisawa 11c6b37c5f Bug 1765319 - Part 2: Do not use global this in symbolication.jsm.js. r=canaltinova
This `global` variable is used for accessing Error prototypes, and they're
properties of the shared global (`globalThis`), not per-JSM global (`this`).

Differential Revision: https://phabricator.services.mozilla.com/D144131
2022-05-13 20:12:26 +00:00
Tooru Fujisawa e9b1ae583b Bug 1765319 - Part 1: Do not use global this in CustomizableUI.jsm. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D144130
2022-05-13 20:12:25 +00:00
Emilio Cobos Álvarez 07b22c6553 Bug 1769263 - Remove layout.css.line-height.normal-as-resolved-value.enabled. r=jwatt
It's been enabled-by-default for years.

Differential Revision: https://phabricator.services.mozilla.com/D146309
2022-05-13 19:28:40 +00:00
Narcis Beleuzu c641ca6aa7 Backed out 2 changesets (bug 1766038) for SM bustages . CLOSED TREE
Backed out changeset 01bec52b2ba3 (bug 1766038)
Backed out changeset cfcc7c859257 (bug 1766038)
2022-05-13 22:54:28 +03:00
Mozilla Releng Treescript 15c068400c no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
gn -> f57a8882d0805a1420067cf3e747d0e133cb1ba4
id -> fc31c68b63bfb3ac2acc66d739f0e1f75031893c
it -> cbaab53a0ccfa0d0accb2404a4c271b4f4c331da
kab -> 6f03a6e77434a624038dec726f3dd8b04064b282
nb-NO -> 4bfb3ba861f1954965c541804aaf73ba7f1cfbf2
tg -> 8ddae57b7d2ff45a603bb3b0abc150cbce4b2745
2022-05-13 19:02:12 +00:00
Tom Schuster c256578f28 Bug 1522136 - Remove javascript.options.streams and other legacy prefs. r=mgaudet,webidl,edgar
Differential Revision: https://phabricator.services.mozilla.com/D145810
2022-05-13 18:58:48 +00:00
Alexandre Lissy dbf185ac34 Bug 1768411 - Test Utility AudioDecoder crash recovery r=alwu,nika
Differential Revision: https://phabricator.services.mozilla.com/D146100
2022-05-13 18:47:28 +00:00
Iulian Moraru 1a0666e8ec Bug 1766038 - fix black lint failures on moz.build. r=fix CLOSED TREE 2022-05-13 21:53:16 +03:00
Iulian Moraru 77178f7676 Bug 1754879 - fix file-whitespace lint failures on autocomplete_off_on_inputs.html. r=fix 2022-05-13 21:49:52 +03:00
Hanna Jones 3bcccb6ffb Bug 1756169 - Set print margins to 'None' when defaults are invalid r=mstriemer
For smaller paper sizes (e.g. label maker sized paper) it's possible that the defaut margins will be too large, wich results in non-obvious error state for the print dialog. In this case we want to fall back to using "None" margins to ensure the form is valid/printing is still possible.

Differential Revision: https://phabricator.services.mozilla.com/D142889
2022-05-13 18:19:32 +00:00
Kagami Sascha Rosylight 66628d8729 Bug 1766038 - Prefer full qualified types over typedefs for JS::Handle/Rooted r=andi,sfink
Differential Revision: https://phabricator.services.mozilla.com/D145802
2022-05-13 18:02:47 +00:00
Tim Giles e50bd6c662 Bug 1754879 - Ignore autocomplete=off in Form Autofill. r=sgalich,dimi
Form Autofill now supports respecting autocomplete=off if the newly added
"extensions.formautofill.creditCards.ignoreAutocompleteOff" and
"extensions.formautofill.addresses.ignoreAutocompleteOff" are set to false.

Differential Revision: https://phabricator.services.mozilla.com/D145916
2022-05-13 17:53:20 +00:00
Eitan Isaacson 8bdda6281d Bug 1758540 - Pref on accessibility cache in Android. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D141638
2022-05-13 17:47:33 +00:00
Iulian Moraru b0d5d7d487 Backed out changeset 9545a05173c4 (bug 1769269) for causing multiple failures widget related. CLOSED TREE 2022-05-13 21:25:04 +03:00
Iulian Moraru bdd514047e Backed out changeset fee2a1521dfe (bug 1769098) for causing python failures. CLOSED TREE 2022-05-13 21:03:32 +03:00