805736 Commits

Author SHA1 Message Date
Tom Ritter
8c11e2117e Bug 1786948: Remove dead code from the moz.yaml schema validation r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D155596
2022-08-25 19:37:49 +00:00
Ray Kraesig
709d56796c Bug 1785162 - Always stall on OOM on Windows in Nightly r=gsvelto
It's suspected that this may induce performance regressions. Do it
anyway, just to find out how bad it is. (But only on Nightly, for now.)

For simplicity's sake, this does not include any additional telemetry;
the decision of whether and what any additional telemetry is needed will
be deferred until we have some feedback from what we've already got.

Differential Revision: https://phabricator.services.mozilla.com/D155301
2022-08-25 19:35:32 +00:00
Dale Harvey
2586cc9ed6 Bug 1783881 - Add label to commands so QuickActions are filtered. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D155157
2022-08-25 19:17:40 +00:00
Luca Greco
5549205044 Bug 1785821 - Only allow manifest_version 3 extensions to merge CSP in the short run. r=mixedpuppy
This patch includes:

- changes to WebRequest.jsm to always default to only merge the CSP headers returned by MV3 extensions

- changes to the test_ext_webRequest_mergecsp.js xpcshell test to cover the behavior expected
  with MV3 extensions and combinations of both MV2 and MV3 extensions changing CSP headers
  for the same intercepted web request.

For MV3 extensions we would prefer a more explicit and predictable way for the
extensions to be allowed to replace the CSP header, instead of keeping the same
unpredictable and implicit one that we currently support for MV2 extensions.

Differential Revision: https://phabricator.services.mozilla.com/D154983
2022-08-25 19:13:50 +00:00
Sam Foster
fcf4ce2092 Bug 1784130 - Hide mobile promo when signed out. r=niklas
* Only show the mobile promo when tab syncing is enabled
* Toggle the promo & confirmation visibility in all setup states to ensure it gets hidden when we re-enter the sign-in to FxA state
* Add test coverage for signing out

Differential Revision: https://phabricator.services.mozilla.com/D154850
2022-08-25 19:12:39 +00:00
Brad Werth
933b043177 Bug 1787271: Change the order of emitted video low power telemetry enums. r=gfx-reviewers,jrmuizel
This favors FailWindowed as the most important enum to see before any
others, which is more actionable.

Differential Revision: https://phabricator.services.mozilla.com/D155614
2022-08-25 17:42:02 +00:00
André Bargull
1b906313da Bug 1786844: Handle MGuardToFunction and MGuardFunctionScript during scalar replacement. r=iain
This allows to scalar replace the `MNewCallObject` in cases like:
```js
function f() {
  var r = 0;
  for (var i = 0; i < 100; ++i) {
    var fn = i => () => i;
    r += fn(i)();
  }
  return r;
}
```

This code is compiled to:
```
48 lambda newcallobject43:Object constant47:Object
53 guardtofunction lambda48:Object
54 guardfunctionscript guardtofunction53:Object
57 functionenvironment guardfunctionscript54:Object
```

`MGuardToFunction` and `MGuardFunctionScript` weren't present in Ion when scalar
replacement support for `MNewCallObject` was originally implemented. For Warp
we need to handle those two instructions, too.

There aren't any new tests, because `MNewCallObject` is an implementation detail
and can't be tested from JS. (The `MLambda` is already scalar replaced without
this change.)

Differential Revision: https://phabricator.services.mozilla.com/D155470
2022-08-25 17:27:53 +00:00
Emily McMinn
b9bdb64bcf Bug 1786828 - Remove pointer-events from spotlight picture element to keep it from overlapping the close button r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D155500
2022-08-25 16:49:09 +00:00
Updatebot
7ff2d1316e Bug 1786364 - Update dav1d to cd5e415270285a58f48c1e9ec1a2dd024b9acf9f r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D155266
2022-08-25 16:37:55 +00:00
Butkovits Atila
101b594cdb Backed out 4 changesets (bug 1786050, bug 1786796) for causing reftest failure at font-error-404-2.html. CLOSED TREE
Backed out changeset 97fc4d3e5911 (bug 1786796)
Backed out changeset c80a7f0aee8e (bug 1786796)
Backed out changeset 23314917bc22 (bug 1786050)
Backed out changeset 16d1b659b291 (bug 1786050)
2022-08-25 20:35:09 +03:00
Marian-Vasile Laza
36e9738343 Backed out 2 changesets (bug 1783099, bug 1772178) for causing bc failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset c4ca03b83a54 (bug 1772178)
Backed out changeset c5690a290bfe (bug 1783099)
2022-08-25 18:19:23 +03:00
Nicolas B. Pierron
c7e2579b91 Bug 1779940 part 4 - Use ScopeBindingCache to speed-up binding lookup. r=arai
When generating bytecode, we are looking for names locations, using
`ScopeContext::searchInEnclosingScope`, to replace them by integers, which
improve the speed of the generated code.

However, looking for these names can it-self be extremlly costly if there is a
scope with a very large number of bindings. Multiple attempts have been made in
the past to improve this situation by caching bindings within the scope of each
compilation. Unfortunately, this was either a regression or a non-improvement,
as these lookups might be done by thousands of inner functions.

This patch adds content to the `ScopeBindingCache`, introduced in the previous
patch as placeholder. The `ScopeBindingCache` is a cache which persists across
multiple compilations. Therefore, if a scope chain is shared by multiple
delazified inner function, the caching cost would be mutualized.

The `ScopeBindingCache`, as the `searchInEnclosingScope` function have to deal
with 2 different kind of scopes. Either we are manipulating stencils, in case of
concurrent delazification, or we are manipulating GC objects, in case of
on-demand delazification. Thus the interface provide overloaded functions to be
able to write generic code, and contains 2 `ScopeBindingMap`, one for each type
of atoms `TaggedParserAtomIndex` and `JSAtom*` respectively coming from scope
`*::ParserData` and `*::RuntimeData` of each scope.

The `ScopeBindingMap` is a `HashMap` indexed on the `AbstactBaseScopeData` for
each Atom type. It maps the scope data, i-e the pointer to the array of
bindings, to the `BindingMap`.

The `BindingMap` provides a `HashMap` and a `catchAll` field. The `HashMap` is
used to map each binding to its `NameLocation`, while the `catchAll` is used to
handle the case where the scope is used to collect all new names, when
dynamically created.

The `BindingMap`'s `hashMap` makes use of the lookup capability of `HashTable`
in order to avoid storing the context of each atom next to each key. As all
bindings are coming from the same scope data. Thus the `Lookup` provides the
context to interpret the keys which are stored in the `hashMap`. This `HashMap`
also feature the ability to compare all 3 different atoms possible. The
comparisons between these 3 different atoms is handled by the `GenericAtom`
class.

The `GenericAtom` class provides a uniform interface for comparing the 3
different type of atoms against each others, such that atoms can be registered
in the `BindingMap` with one type, while being look up with the same or
different type. The `GenericAtom` exposes a `hash` field, which is consistent
across all atoms types, as well as an equality operator. The 3 different atoms
types are: `TaggedParserAtomIndex` provided by the `ScopeStencilRef`, the
`TaggedParserAtomIndex` provided by the `ParserAtomTable` and the `JSAtom*` from
GC objects.

Differential Revision: https://phabricator.services.mozilla.com/D154514
2022-08-25 15:03:30 +00:00
Nicolas B. Pierron
16d8e1e10e Bug 1779940 part 3 - Add dummy ScopeBindingCache, and get it across. r=arai
This patch isolate the boiler plate code to create a dummy ScopeBindingCache
with no logic to split the noise of this not-so mechanical patch driven by
compiler error messages.

This patch modify the interface of every function, adding the option to provide
a custom ScopeBindingCache when parsing a Stencil, except for publicly facing
functions such as from `js/public/experimental/JSStencil.h`.

The intent being that Helper thread functions, which are relying on Stencil
should have their own ScopeBindingCache which is either unused, or dedicated to
caching the bindings of multiple delazifications. The reasons are that in the
future we are interested in stripping the JSContext* out of HelperThreads, and
that there is no value in sharing the content across threads.

Differential Revision: https://phabricator.services.mozilla.com/D154513
2022-08-25 15:03:30 +00:00
Nicolas B. Pierron
4d9b0fe251 Bug 1779940 part 2 - Add HashMap::put which relies on lookup. r=arai
The next patch is creating a cache which is capable of looking up different kind
of string types. However, each string type need some contextual information to
be able to compare them against each others, which adds complexity to the lookup
type. In addition, the keys are of only one string type, and therefore we try to
avoid storing this context as part of each key, but instead provide it with the
contextual information coming with the Lookup type.

Therefore, when we want to insert a key, which might already be present, using
`put`. We have to provide a `aLookup` argument which knows how to compare keys.

This also make the interface similar to `putNew` which already has the
distinctions between the `Lookup` argument and the `KeyInput` argument.

Differential Revision: https://phabricator.services.mozilla.com/D154512
2022-08-25 15:03:29 +00:00
Nicolas B. Pierron
13f4bc063d Bug 1779940 part 1 - Short circuit TaggedParserAtomIndex and JSAtom comparisons. r=arai
This patch adds 2 short-circuits to improve the lookup of bindings in the
enclosing scope chain, during on-demand delazification.

The first short-circuit is in Function scope, by comparing bindings against each
others, we can compare either `JSAtom` directly against `JSAtom` or
`TaggedParserAtomIndex` directly with `TaggedParserAtomIndex` from the
CompilationStencil context.

The second short-circuit is in `InputName::isEqualTo`, in the case where we are
comparing a `JSAtom` against the `TaggedParserAtomIndex` from the compiled
script, we can query the hash of both and compare them before converting the
`TaggedParserAtomIndex` into a `JSAtom`, which should make the comparison
faster.

Differential Revision: https://phabricator.services.mozilla.com/D154511
2022-08-25 15:03:29 +00:00
Nicolas B. Pierron
77532801d8 Bug 1779940 part 0 - Move the hops offsetting out of searchInEnclosingScope. r=arai
This patch moves the hops offseting out of the `searchInEnclosingScope`
computation such that `searchInEnclosingScope` computation can provide a result
which is independent from where the named is looked for. Making the NameLocation
independent enables us to later cache the NameLocation.

Differential Revision: https://phabricator.services.mozilla.com/D154510
2022-08-25 15:03:28 +00:00
ffxbld
7de1940b30 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D155573
2022-08-25 14:49:54 +00:00
negin
6e146f5e4f Bug 1781528 - Add Arrow to secondary button CTA r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D155594
2022-08-25 14:47:06 +00:00
Ray Kraesig
613c6089f5 Bug 1716727 - patchset #3 [1/1] - Cleanup: remove intermediate function r=glandium
Since mozglue is now aware of Gecko process-types, remove the
configurator for this bug's associated experiment. Instead, use
`GeckoProcessType` directly in mozjemalloc.

This requires a couple of adjustments for non-Firefox uses of
mozjemalloc:

- Since `logalloc-replay` uses mozjemalloc in an odd way, tweak its
  `moz.build` to also include `mozglue/misc/ProcessType.cpp`.
- Since `GeckoProcessType` is not available in standalone SpiderMonkey
  builds, make the mostly-arbitrarily choice to always stall there.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D155300
2022-08-25 14:44:47 +00:00
Hubert Boma Manilla
529cf4bac7 Bug 1785269 - Stop removing source based on the source thread instead use the source actor thread r=ochameau
This patch stops removing sources based on the `source.thread` property,
instead this should based of the source actors thread. This enables us to remove
the `source.thread` property which would be wrong when the breakpoints per url
work D150628 is done.

Differential Revision: https://phabricator.services.mozilla.com/D154904
2022-08-25 14:30:12 +00:00
Barret Rennie
4ecd98208f Bug 1772178 - Port osfile.jsm usage to IOUtils in browser/base/content r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D155002
2022-08-25 14:29:34 +00:00
Barret Rennie
0252236b74 Bug 1783099 - Add PathUtils.xulLibraryPath r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154996
2022-08-25 14:29:33 +00:00
Marco Bonardo
deff0b4681 Bug 1714941 - Fix maintenance task to properly fix pages having no visits but not null last_visit_date. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D155431
2022-08-25 13:49:12 +00:00
Jonathan Kew
35bf1b6d36 Bug 1786493 - Add WPT tests for @supports font-format() and font-tech() functions. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D155360
2022-08-25 12:19:21 +00:00
Jonathan Kew
5bcdc7cf69 Bug 1786493 - Implement CSS @supports font-format(...) and font-tech(...) functions. r=emilio
These are gated by the same layout.css.font-tech.enabled pref as the
closely-related `tech()` function for the @font-face src descriptor;
once the spec questions are settled, we should enable them all together.

Differential Revision: https://phabricator.services.mozilla.com/D155359
2022-08-25 12:19:21 +00:00
Tooru Fujisawa
4ce6d539fd Bug 1782450 - Update comment for EnvironmentObject.h and add testcases for non-syntactic scope. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D153727
2022-08-25 11:28:56 +00:00
Marian-Vasile Laza
07de1f7c1b Backed out 2 changesets (bug 1786493) for causing build bustages. CLOSED TREE
Backed out changeset 077219c44704 (bug 1786493)
Backed out changeset b1b0464f9bed (bug 1786493)
2022-08-25 14:26:59 +03:00
Eemeli Aro
110a144175 Bug 1784882 - Drop global styles for dlgtype="help". r=desktop-theme-reviewers,dao
After removing the button from MozDialog, the only remaining use in
PageInfo is turned into a local class style.

Differential Revision: https://phabricator.services.mozilla.com/D154872
2022-08-25 11:19:00 +00:00
Eemeli Aro
3dd348bc8c Bug 1784882 - Drop MozDialog help button. r=mkmelin,dao
The <dialog> help button is not used by Firefox or Thunderbird,
and its behaviour is untested.

Differential Revision: https://phabricator.services.mozilla.com/D154871
2022-08-25 11:19:00 +00:00
Paul Zuehlcke
3e16fc7823 Bug 1751481 - Enable felt privacy features by default and integrate with Nimbus. r=dao,preferences-reviewers,Gijs
Depends on D155013

Differential Revision: https://phabricator.services.mozilla.com/D155065
2022-08-25 11:17:39 +00:00
Paul Zuehlcke
ad267cf48d Bug 1752172 - Updated privacy segmentation preferences section for final UX. r=preferences-reviewers,fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D155013
2022-08-25 11:17:38 +00:00
Jonathan Kew
d245fbf6cf Bug 1786493 - Add WPT tests for @supports font-format() and font-tech() functions. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D155360
2022-08-25 11:09:11 +00:00
Jonathan Kew
4642b812a4 Bug 1786493 - Implement CSS @supports font-format(...) and font-tech(...) functions. r=emilio
These are gated by the same layout.css.font-tech.enabled pref as the
closely-related `tech()` function for the @font-face src descriptor;
once the spec questions are settled, we should enable them all together.

Differential Revision: https://phabricator.services.mozilla.com/D155359
2022-08-25 11:09:10 +00:00
Nicolas Chevobbe
65f7672999 Bug 1786699 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/selectors. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155452
2022-08-25 11:00:10 +00:00
Jonathan Kew
2b85b88c98 Bug 1786796 - Reftest for gradient when color stop range collapses to zero. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155504
2022-08-25 09:46:59 +00:00
Jonathan Kew
47769a9f83 Bug 1786796 - Handle a color stop range of zero in COLRv1 gradients. r=gfx-reviewers,lsalzman
Depends on D155472

Differential Revision: https://phabricator.services.mozilla.com/D155465
2022-08-25 09:46:59 +00:00
Jonathan Kew
fc03470c21 Bug 1786050 - Add a reftest. r=gfx-reviewers,lsalzman
The glyphs "b" and "c" here have radial gradients with non-[0..1] color stop ranges,
and are compared against versions with equivalent normalized gradients.

Depends on D155080

Differential Revision: https://phabricator.services.mozilla.com/D155472
2022-08-25 09:46:59 +00:00
Jonathan Kew
827ef46945 Bug 1786050 - Normalize color-line if endpoints are not [0.0, 1.0] when creating radial gradient. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155080
2022-08-25 09:46:58 +00:00
Gabriele Svelto
e111b7125f Bug 1787087 - Remove breakpad's dump_syms from the macOS system symbols scrapers and use the Rust one instead r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D155561
2022-08-25 09:45:39 +00:00
Frederic Wang
79e3532d7f Bug 1783998 - Remove MathML preference script_shift_attributes. r=emilio
- Remove script_shift_attributes preference and related test, warning
  message and parsing.
- Do not remove subscriptshift/supscripshift atoms, since they are
  still needed for nsTreeSanitizer.

Differential Revision: https://phabricator.services.mozilla.com/D154195
2022-08-25 09:03:58 +00:00
samronning
f832ff9ad3 Bug 1786402 - Fix ESLint rule warnings for no-unused-vars in intl/uconv/tests/unit/test_bug340714.js r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D155290
2022-08-25 08:28:17 +00:00
Sandor Molnar
098258b79a Merge mozilla-central to autoland a=merge 2022-08-25 07:51:26 +03:00
Cosmin Sabou
6037f564d9 Backed out 2 changesets (bug 1649987) for causing Bug 1787098, artifact related exceptions. a=backout
Backed out changeset 77c769965781 (bug 1649987)
Backed out changeset 971139c802a7 (bug 1649987)
2022-08-25 07:39:26 +03:00
Cosmin Sabou
3a931cf8ec Backed out changeset 925838f86a80 (bug 1649987) for causing Bug 1787098. a=backout 2022-08-25 07:15:21 +03:00
Razvan Cojocaru
2456e8733d Bug 1782339 - Incorrectly hit overscroll bounce makes it impossible to scroll page fully. r=botond,dlrobertson,hiro
Differential Revision: https://phabricator.services.mozilla.com/D155047
2022-08-25 04:02:48 +00:00
Cosmin Sabou
a494d8ec2b Merge mozilla-central to autoland. 2022-08-25 06:59:53 +03:00
Sandor Molnar
3b3339b3a5 Backed out 4 changesets (bug 1786050, bug 1786796) for causing reftest failures. CLOSED TREE
Backed out changeset 9c09be52726f (bug 1786796)
Backed out changeset fc292ca682cf (bug 1786796)
Backed out changeset 7b0739cd3f8f (bug 1786050)
Backed out changeset bddde4931caa (bug 1786050)
2022-08-25 06:21:23 +03:00
Sandor Molnar
f6c5f48454 Backed out 4 changesets (bug 1786050, bug 1786796) for causing reftest failures. CLOSED TREE
Backed out changeset 9c09be52726f (bug 1786796)
Backed out changeset fc292ca682cf (bug 1786796)
Backed out changeset 7b0739cd3f8f (bug 1786050)
Backed out changeset bddde4931caa (bug 1786050)
2022-08-25 06:21:23 +03:00
Sandor Molnar
8ab85c7325 Backed out 2 changesets (bug 1772178, bug 1783099) for causing build bustages in dom/bindings/PathUtilsBinding.cpp CLOSED TREE
Backed out changeset c31245b98fd7 (bug 1772178)
Backed out changeset d79196b62ab2 (bug 1783099)
2022-08-25 05:58:51 +03:00
Mathew Hodson
422ff2ebd3 Bug 1782651 - Disable mozCurrentTransform by default. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153431
2022-08-25 02:47:49 +00:00