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

834903 Коммитов

Автор SHA1 Сообщение Дата
Mozilla Releng Treescript 331ad3643f no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
es-ES -> 344de261942971a26aed9c5da8927b84a9832a87
nb-NO -> 834977fce8d265dbd76d9fae76b9abb7df4c07e9
nn-NO -> 212faca6901d9d64976ce8354b1e3b6b29431044
oc -> 16e0e3e6537f5a14c84836609312c797c448a2c8
skr -> 6067f3460e895c3090dab2f650b1430595f30cda
2023-03-20 06:59:53 +00:00
Drew Willcoxon d2786d9a6a Bug 1823080 - Fetch the weather suggestion on a slight delay after wake. r=daisuke
This adds a delay after wake just like the delay after online notifications.
It's conceivable that online notifications might happen soon after the wake
notification. [Sync also does this](https://searchfox.org/mozilla-central/rev/ed93119be4818da1509bbcb7b28e245853eeedd5/services/sync/modules/policies.sys.mjs#528-534).

I renamed `cameOnlineDelayMs` to `fetchDelayAfterComingOnlineMs`. It's longer
but I think it's clearer. I don't think we need a separate delay ms for wake; we
can just use the same one that we use for online.

I also added a test for a wake notification followed by online notifications.

Differential Revision: https://phabricator.services.mozilla.com/D172892
2023-03-20 04:03:10 +00:00
Csoregi Natalia 6262fd3004 Backed out changeset 947d2c894f1e (bug 1813145) for causing leaks. CLOSED TREE 2023-03-20 01:27:47 +02:00
Glenn Watson a7e386d79f Bug 1821233 - Simplify and optimize how prims are pushed to command buffers r=gfx-reviewers,lsalzman
Previously, we would do a fine-grained visibility check for
prims against the dirty rect stack (after coarse grained
tile visibility), then prepare the primitive, then determine
which command buffer(s) the prim should be added to, based
on which tile(s) the prim affects.

The patch changes this so that the fine-grained visibility
check returns a list of command buffer(s) that the prim
should be added to. This is passed to the prim prepare
step, and then used to directly add prims to the buffers
rather than checking which tiles are affected by the prim.

The motivation for doing this will become apparent in
follow up patches. We want to be able to encode
multiple command buffer commands per-prim, whereas it
was previously only possible to encode primitive
commands. By allowing prim-prepare to write directly
to the command buffers, rather than return a list of
primitive commands, we can write whatever commands
are needed. Future patches will use this to write
segment rect streams, and other information.

A side effect of this is that the `tile_rect` field
in the `PrimitiveVisibility` struct is no longer
required. This reduces the size of `PrimitiveInstance`
from 104 bytes to 88 bytes, which is likely to be
a reasonable performance win on pages that have
high primitive counts.

Differential Revision: https://phabricator.services.mozilla.com/D172081
2023-03-19 22:57:54 +00:00
Mark Banner e427011917 Bug 1823246 - Remove unnecessary NetUtil imports in netwerk/test/unit. r=valentin,necko-reviewers
The head files import NetUtil already, additionally, most of these don't actually do anything because they are not assigned

Differential Revision: https://phabricator.services.mozilla.com/D172943
2023-03-19 22:17:11 +00:00
Robert Longson 4efc5e5de1 Bug 1823269 - Simplify SVGUtils::GetCanvasTM r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172948
2023-03-19 20:53:34 +00:00
Yoshi Cheng-Hao Huang 19e0568f4d Bug 1820119 - import() should throw a TypeError in a worklet script. r=jonco,yulia
Differential Revision: https://phabricator.services.mozilla.com/D171563
2023-03-19 20:39:02 +00:00
Mozilla Releng Treescript 5036a4f8da no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
el -> 0894acdd52c4c3fe9cefb85450974b0bfd82fbd0
lo -> 1e08bf1751b34d76194c659cf193820950ab45a2
my -> 83ed2c486c56c9631490d9caa4018294277513fb
sk -> b0925be36ca5039a12d29eb9e85d1a41b4625718
skr -> 1381a18c12a3e9eda83bffa74ae678afda877afc
sr -> ca40f6c6abb7093e41d642e24e77a39c94245e85
zh-CN -> 4a41931c7ed4928b0350a81d84d781d7cec9b7c0
2023-03-19 19:00:19 +00:00
Jonathan Kew c9c9aef089 Bug 1823270 - Rewrite gfxTextRun::SortGlyphRuns to use RemoveElementsBy instead of RemoveElementAt when merging adjacent runs, to minimize array-data shifting. r=gfx-reviewers,lsalzman
In the patches for bug 1823215, we eliminated the use of a local copy of the glyph runs array
during SortGlyphRuns; but we call RemoveElementAt individually for each run to be coalesced,
which means potentially moving all the rest of the array multiple times. Instrumentation shows
that we sometimes end up with dozens of glyphruns to be coalesced (or even hundreds/thousands,
in pathological cases), which becomes quite inefficient.

Using RemoveElementsBy(predicate) instead will minimize the copying/moving of the remaining
array elements.

Differential Revision: https://phabricator.services.mozilla.com/D172945
2023-03-19 18:41:30 +00:00
Rob Wu 3c3ad00ab7 Bug 1821051 - Enforce quota for regexFilter rules r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D172253
2023-03-19 17:57:08 +00:00
Rob Wu 9d0c90be69 Bug 1821051 - Enforce rule limit for session rules r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D172252
2023-03-19 17:57:08 +00:00
Rob Wu b2fc05e91f Bug 1821051 - Ignore all dynamic rules on quota violation at load r=rpl
Rulesets are atomic units. It does not select an arbitrary subset as an
"error recovery mechanism". This commits switches to the common quota
verification logic from the previous commit (RuleQuotaCounter).

Differential Revision: https://phabricator.services.mozilla.com/D172251
2023-03-19 17:57:07 +00:00
Rob Wu b15657c638 Bug 1821051 - Refactor rule limit counting r=rpl
As a preparation for quota enforcement for session rules and dynamic
rules, this refactors the quota enforcement, by introducing a single
helper (RuleQuotaCounter) that keeps track of the rule counts and
is responsible for enforcing quotas.

This patch is purely a refactor, and the only behavioral changes are the
strings in error messages.

The error messages of static rules were previously not covered by unit
tests; this patch also improves test coverage in that area.

Lastly, removed TODO from the static rule loading. When a static ruleset
were to exceed the quota, the desired behavior is to ignore it and try
the next ruleset (this is consistent with Chromium).

Differential Revision: https://phabricator.services.mozilla.com/D172250
2023-03-19 17:57:07 +00:00
Jonathan Kew 73d344d188 Bug 1823215 - Use ElementOrArray<T> to simplify the management of glyphrun(s) in gfxTextRun. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D172940
2023-03-19 16:36:06 +00:00
Jonathan Kew 3bdedbad5b Bug 1823215 - Add API to ElementOrArray to support use in gfxTextRun to store the glyph run(s). r=gfx-reviewers,lsalzman
Depends on D172938

Differential Revision: https://phabricator.services.mozilla.com/D172939
2023-03-19 16:36:06 +00:00
Jonathan Kew ce6caaeacf Bug 1823215 - Extract ElementOrArray<T> from CanvasRenderingContext2D into gfxUtils.h so it can also be used elsewhere in gfx/thebes. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D172938
2023-03-19 16:36:05 +00:00
anwar dfac3c918a Bug 1821901 - Convert toolkit/components/timermanager to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172872
2023-03-19 11:43:27 +00:00
Tiaan Louw 03828b4c67 Bug 1822041 - Color interpolation takes none keyword into account r=emilio,layout-reviewers
Now that the none keyword is available, we can take it into account when
interpolating colors following the rules from the spec here:

https://drafts.csswg.org/css-color-4/#interpolation-missing

Differential Revision: https://phabricator.services.mozilla.com/D172666
2023-03-19 10:09:53 +00:00
Mozilla Releng Treescript 9d5cddea34 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
en-GB -> eab5a751dad7e6e815fb66121006c6671c1ec782
es-AR -> 4f0a817ece38c5efcb31534d4cf7c4613251867e
es-CL -> c0de983c723ab25ec11f62034d8fc4437bb178da
nb-NO -> 32240fb92df646342537d8abee39d3a5f10b7d10
zh-CN -> b3a1436da3124f7682b82be46322204f9fbb863b
2023-03-19 07:00:04 +00:00
Robert Longson 7fb9adef36 Bug 1823111 - increase text-shadow reftest fuzziness slightly on Android r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D172925
2023-03-19 06:13:16 +00:00
Norisz Fay 24d202aec7 Backed out changeset 7f1f3d4b0464 (bug 1823111) as requested by dev for causing reftest failures on text-shadow.svg, dynamic-text-shadow.svg CLOSED TREE 2023-03-19 07:54:59 +02:00
Steve Fink 0d94b738c0 Bug 1787579 - Minor allocation cleanup - comments, reordering, etc. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D155767
2023-03-19 02:52:11 +00:00
Steve Fink b4a4d328eb Bug 1787579 - Move AllocateObject into js::gc::CellAllocator alongside AllocateString and AllocateBigInt r=arai
Differential Revision: https://phabricator.services.mozilla.com/D155766
2023-03-19 02:52:11 +00:00
Steve Fink 6cbb38a3fc Bug 1787579 - Use constructors for BigInt r=arai
Differential Revision: https://phabricator.services.mozilla.com/D155765
2023-03-19 02:52:10 +00:00
Lee Salzman d9bcef0fa5 Bug 1447839 - Directly calculate endpoint in PathBuilderRecording::Arc. r=jrmuizel,gfx-reviewers
The math for directly calculating the endpoint of the arc is actually trivial,
and ArcToBezier is pretty expensive so should be avoided.

Differential Revision: https://phabricator.services.mozilla.com/D172929
2023-03-19 02:05:23 +00:00
Robert Longson 71bd835025 Bug 1823111 - increase fuzziness slightly on Android r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D172925
2023-03-18 22:27:01 +00:00
Daniel Holbert fc511c104c Bug 1821793 part 2: Use 0 margin and Ahem font in WPT clip-path-polygon-013.html, to make its computations less likely to produce fractional-pixel sizes with fuzzy failures. r=emilio
The standard WPT viewport is 800px wide, which (as a multiple of 100) can
conveniently resolve whole-number percentages without creating a fractional
size.  But the default body-margins reduce it by 16px, to 784, which is less of
a round-number percent basis.

This was producing some fractional-pixel sizes in this test, which were causing
a fuzzy failure, due to antialiasing differences between how "width" and
"clip-path" handle fractional pixel sizes.

So, this patch just removes those margins, to give us 800px as our percent
basis, which avoids fractional-pixel sizes in this test.

Similarly: this patch also makes us use the Ahem font so that the test's "ex"
units will resolve to a predictable value, instead of whatever
potentially-fractional-value the default font would yield.

Differential Revision: https://phabricator.services.mozilla.com/D172917
2023-03-18 20:27:38 +00:00
Daniel Holbert d4051b7a68 Bug 1821793 part 1: Add fuzzy annotations for various mask-image WPT test-failures whose mismatching pixels are all antialiasing differences along curves. r=emilio
See https://bugzilla.mozilla.org/show_bug.cgi?id=1821793#c2 for more info on
these failures.

In most cases here, I'm taking the fuzzy annotations from the exact values that
wpt.fyi reports for Firefox/Gecko.  The only exception is for
clip-path-borderBox-1a.html, where I use a (higher) threshold taken from the
values that wpt.fyi reports for Safari/WebKit (which has a similar fuzzy
failure).

Differential Revision: https://phabricator.services.mozilla.com/D172916
2023-03-18 20:27:37 +00:00
Emilio Cobos Álvarez 5352c49339 Bug 1823056 - Fix autoscroll popup styles after bug 1809084. r=Itiel
Two issues:

 * The part="content" of this popup is the <slot> itself. As such, it
   now respects box-sizing, which our existing rules didn't account for.

 * The <slot> didn't automatically fill the popup as old XUL did.
   Explicitly set width/height.

Differential Revision: https://phabricator.services.mozilla.com/D172888
2023-03-18 19:21:46 +00:00
Itiel a2e4b3aeca Bug 1823171 - Don't shrink panel menu items r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172923
2023-03-18 19:14:11 +00:00
Hubert Boma Manilla 9e2dc86bbd Bug 1818962 - [devtools] Refactor search modifiers actions and reducers r=ochameau,devtools-reviewers
This patch makes the SearchInput a connected component, This allows us cleanup
all the seperate actions and reducer logic and makes it easier to add new SearchInput
with modifers functionality.

Differential Revision: https://phabricator.services.mozilla.com/D171034
2023-03-18 18:59:47 +00:00
Mozilla Releng Treescript 536fca3341 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cak -> f343c178515d6722f3c045cec6698dc3050d9a03
en-GB -> f3d857198bdd6d3e9f7cd7f5ce02ab15ef2ff050
es-MX -> a88bd78d93e6cc29cff301b41c07186a1b381348
fr -> f1ad6d3d8f564886df807ac89cf9300702d92d54
ia -> 64ca8c39ff9923583381998158157ffb84c6d444
it -> a81c165c550c52f740b594f08987be47f47782f4
lo -> 137d76e72ede0e13c31d1ee2b4213cfde4227884
pt-BR -> c9bcff93c946fa7063a8dcc7be93dc9c5c2f6486
pt-PT -> e1411e49327696840fc0422dcd9eded0923a24bb
skr -> dbb79146790a40811db6406da914c6c84acce205
vi -> 8236a2079deee6f42c70a52e187e220cfe221d39
zh-CN -> 05af437578cdf5a3efc1c64ae1e5daa03239016d
2023-03-18 19:01:04 +00:00
Marian-Vasile Laza a8ccc1f226 Backed out changeset 6dc913a054e9 (bug 1822521) for bc failures on browser_parsable_css.js. CLOSED TREE 2023-03-18 16:06:04 +02:00
Cathie Chen c289513d2f Bug 1822521 - Update UA stylesheet for popover. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172700
2023-03-18 12:56:18 +00:00
Hubert Boma Manilla 56f88f9ab8 Bug 1820200 - [devtools] Fix and enable browser_resources_network_events.js test r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172581
2023-03-18 12:47:24 +00:00
zaggy1024 2bbf25b345 Bug 1813145 - Enable AVIF sequences on nightly. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D168629
2023-03-18 12:33:51 +00:00
Mathew Hodson 7eba459fca Bug 1822955 - Disable mozImageSmoothingEnabled by default. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172860
2023-03-18 11:45:36 +00:00
Masayuki Nakano 5b59e4aeae Bug 1384606 - part 4: Make `nsIFrame::GetFrameFromDirection` allow to return content in different native anonymous subtree if the caller wants r=emilio
The a11y module wants to traverse frames in native anonymous subtrees.
Therefore, this patch adds new option for allowing it, makes
`nsIFrame::GetFrameFromDirection` check it before comparing native anonymous
subtree root nodes, and makes `HyperTextAccessible::FindOffset` use the
option.

Differential Revision: https://phabricator.services.mozilla.com/D172759
2023-03-18 04:18:53 +00:00
Masayuki Nakano 01d2fe15e1 Bug 1384606 - part 3: Make `nsPeekOffsetStruct` and its handlers treat `bool` options with an `EnumSet` r=emilio
The constructor of `nsPeekOffsetStruct` and `nsIFrame::GetFrameFromDirection`
take too many `bool` arguments.  Therefore, adding new `bool` arguments does
not make sense.  Now, we have a useful `mozilla:EnumSet` class to treat them
with an `enum class`. Therefore, let's change `nsPeekOffsetStruct` with it.

Differential Revision: https://phabricator.services.mozilla.com/D172758
2023-03-18 04:18:53 +00:00
Masayuki Nakano 1ae8b063f9 Bug 1384606 - part 2: Add automated tests for caret browsing around form controls r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172347
2023-03-18 04:18:53 +00:00
Masayuki Nakano bf5792cbac Bug 1384606 - part 1: Make `nsIFrame::GetFrameFromDirection` treat frames in different native anonymous subtree not selectable r=emilio
It's called by `PeekOffsetFor*` and `GetPrevNextBidiLevels`, so it's used for
considering whether to put caret or move a selection range boundary.
Therefore, it should treat nodes which can be managed by `Selection` as
selectable.  In theory, even if a native anonymous subtree does not have
an independent selection, its content nodes should not be the container of
the selection range boundaries of selection outside the subtree since
Selection API shouldn't expose nodes in native anonymous subtrees.  Therefore,
it can simply treat content nodes in different anonymous subtrees are not
selectable.

Note that it's not standardized that how `Selection.modify` works with various
content nodes.
https://w3c.github.io/selection-api/#dom-selection-modify

And also Chrome cannot cross generated content like form controls with this API.
This could cause web-compat issues, but it does not make sense for caret
navigation, and anyway out of scope of this bug.  Therefore, this patch just
adds the crash test.

Differential Revision: https://phabricator.services.mozilla.com/D172204
2023-03-18 04:18:52 +00:00
Cosmin Sabou 5a03595206 Bug 1821918 - Increase the number of chunks for windows debug web-platform tests due to hitting max run time. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D172904
2023-03-18 02:54:49 +00:00
Emanuele Rocca 92da89bf60 Bug 1822827 - Remove explicit NEON flags from skia build r=glandium
While Firefox builds for Android ARMv7 don't support non-NEON
processors, downstreams (including non-Android ones) may still want to
support them.

On the Firefox builds that don't support non-NEON processors, the NEON
flags are actually already passed globally, and they don't need to be
explicitly added. NEON_FLAGS is actually only meant to be used for
sources that specifically need NEON support even when the target doesn't
support it, for, e.g. specialized code behind runtime CPU detection.

So removing NEON_FLAGS is a no-op in practice when NEON processors are
already targeted.

Differential Revision: https://phabricator.services.mozilla.com/D172801
2023-03-17 22:59:50 +00:00
Emilio Cobos Álvarez a8be8e8d20 Bug 1823020 - Set mUntransformedAnchorRect for rect-anchored popups.
I missed setting mUntransformedAnchorRect in one case, causing Wayland
popups to be wrongly positioned.

Differential Revision: https://phabricator.services.mozilla.com/D172886
2023-03-17 19:26:54 +00:00
Emilio Cobos Álvarez 39aeca9d9c Bug 1449669 - Remove IsNodeOfType. r=longsonr
Depends on D172893

Differential Revision: https://phabricator.services.mozilla.com/D172894
2023-03-17 19:22:14 +00:00
Emilio Cobos Álvarez 6779dc7088 Bug 1449669 - Minor clean ups in nsGenericHTMLElement. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D172893
2023-03-17 19:22:13 +00:00
Robert Longson 6fc3d48772 Bug 1781253 - GetBoundingClientRect should return the bounding rect of the text ignoring ink overflow r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D172549
2023-03-17 19:13:45 +00:00
Lee Salzman 94519ca0e5 Bug 1447839 - Avoid creating internal path builder for PathRecording unless necessary. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D172870
2023-03-17 19:04:40 +00:00
Lee Salzman 47c82792d1 Bug 1447839 - Avoid creating internal path for PathRecording unless necessary. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D172869
2023-03-17 19:04:39 +00:00
Mozilla Releng Treescript e468b1ba27 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
bg -> 01360f4bce126fd0758abb5759e8d88c809acd25
da -> b4c0357e5185526ae35a036310908bae02e97add
fr -> d95fa0593e2d0f5be54d2e5ab375ba85b39d4ba1
gn -> 6afafc4c9de1141ae87e63fe89e307e877f5b2c9
he -> 103f251af0aaee41278d9cc08085b431328562fa
hu -> d50652202be850d4e8df9d894828132059553835
ia -> ccf08deaa498f3e2491d7755f09651d3dae63bf5
is -> db0d33fcbe9a063a30ac28da1cd77f88a2218ec4
zh-CN -> 9ba36aef7f4fedbacc712c24ad4064b9565b6825
2023-03-17 19:01:27 +00:00