Commit graph

834728 commits

Author SHA1 Message Date
Andrew Halberstadt
dd673c2fb2 Bug 1811850 - [lint] Replace flake8 linter with ruff, r=linter-reviewers,sylvestre
Ruff is a very fast linter implemented in Rust and it can act as a drop-in
replacement for flake8. When running the same set of rules across all files
in mozilla-central (without mozlint), flake8 takes 900 seconds whereas ruff
takes 0.9 seconds.

Ruff also implements rules from other popular Python linters such as pylint,
isort and pyupgrade. There are even plans to implement feature parity with
black in the future. Ultimately, it can become our one stop shop for all Python
linting and formatting.

This stack will swap out all our Python lint tools for ruff (excluding black
for now).

Differential Revision: https://phabricator.services.mozilla.com/D172313
2023-03-20 13:06:27 +00:00
ffxbld
787579f0f2 No Bug, mozilla-central repo-update HPKP remote-settings tld-suffixes - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D172961
2023-03-20 12:38:17 +00:00
Robert Longson
93304f6d11 Bug 1823290 - Check for NS_FRAME_SVG_LAYOUT directly rather than checking for an SVG frame that isn't an outer SVG frame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172960
2023-03-20 12:30:45 +00:00
Calixte
b292300625 Bug 1823360 - Update PDF.js to new version 3903391f3cbed25806adc4a9874979f7725ec883 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D172989
2023-03-20 12:29:51 +00:00
Dan Robertson
126bc64c16 Bug 1168182 - Update webdriver recommended prefs. r=whimboo,webdriver-reviewers,jdescottes
Update the webdriver recommended preferences to include
dom.events.wheel-event-groups.enabled=false

Differential Revision: https://phabricator.services.mozilla.com/D172025
2023-03-20 12:19:36 +00:00
Dan Robertson
30e2548477 Bug 1168182 - Bind wheel event targets to wheel transactions. r=masayuki,smaug
- Create wheel transactions for wheel events handled by APZ.
 - Group wheel events with the current wheel transaction, so that all
   wheel events in a wheel transaction are fired to the same element.
 - Store the current event target for the first event in a wheel
   transaction to be used for subsequent events.
 - Add the dom.event.wheel-event-groups.enabled preference as a feature
   flag for this behavior.

Differential Revision: https://phabricator.services.mozilla.com/D163484
2023-03-20 12:19:36 +00:00
Sandor Molnar
17db57410f Backed out changeset 145603d042c8 (bug 1823376) for causing bc failures in uriloader/exthandler/tests/mochitest/browser_protocolhandler_loop.js CLOSED TREE 2023-03-20 14:45:17 +02:00
Sandor Molnar
a67270c195 Backed out 2 changesets (bug 1804140) for causing multiple failures.
Backed out changeset 14243ef3e860 (bug 1804140)
Backed out changeset 8f4ae1ab430d (bug 1804140)
2023-03-20 14:33:35 +02:00
Paul Zuehlcke
c4e9743fec Bug 1823376 - Return early after calling launchWithURI without prompt. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D172997
2023-03-20 11:37:30 +00:00
Emilio Cobos Álvarez
8d22c05239 Bug 1823088 - Fix flex-basis in the edit bookmark panel. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D172900
2023-03-20 11:36:28 +00:00
Emilio Cobos Álvarez
a763d95c3a Bug 1823201 - Use display rather than visibility: collapse to hide scroll arrows. r=Gijs
Since visibility: collapse can still end up with a non-zero size for
e.g., padding and so. display: none is a better fit for this.

I noticed this while investigating the overflow mentioned in the
previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D172935
2023-03-20 11:31:18 +00:00
Emilio Cobos Álvarez
3c891dcf69 Bug 1823201 - Make arrowscrollbox deal with minimal scroll area correctly. r=Gijs
There are two bugs here:

 * We're sizing the popup in a way such as there's a <1px scroll range,
   even though there's space to position the popup in the screen without
   it. That's a layout bug I'll look into.

 * When you hit that situation, we never detect that we're scrolled to
   the end (because we have overflow and we're scrolled to the start
   even when scrolled to the end as well).

This patch fixes the second. As per above it's not a complete fix, but
it needs fixing as well, hypothetically you could've hit this with
enough bookmarks to just hit the screen, plus 1 pixel.

I'll look into the first bug too.

Differential Revision: https://phabricator.services.mozilla.com/D172933
2023-03-20 11:30:55 +00:00
Peter Van der Beken
0a61153f2e Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-03-20 11:17:06 +00:00
Peter Van der Beken
9ffd3b6640 Bug 1804140 - Change wpt annotations for tests from Fission to SHIP. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172277
2023-03-20 11:17:05 +00:00
Julien Cristau
79f8242c2d Bug 1822594 - remove webrender test schedule. r=jmaher,ahal
Since webrender was enabled by default this was causing pushes with
webrender-only changes to wrongly optimize out most tests.

Differential Revision: https://phabricator.services.mozilla.com/D172778
2023-03-20 10:45:48 +00:00
Nicolas Chevobbe
56579ac82d Bug 1822568 - [devtools] Fix browser_dbg-pretty-print-breakpoints-columns.js intermittent. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D172980
2023-03-20 10:02:50 +00:00
Lu Yahan
0acabc0198 Bug 1822747 - Add a 'pushValue' function in MacroAssembler.r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D172760
2023-03-20 09:40:36 +00:00
Robert Longson
b868d5195c Bug 1823268 - Give SVGImageFrame its own implementation of BuildDisplayList r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172944
2023-03-20 09:13:32 +00:00
Alexandre Poirot
4c17964101 Bug 1822488 - [devtools] Display stacks when logging Component.Exception objects. r=devtools-reviewers,nchevobbe
We are current displaying stacks for Error but not for Component.Exception objects.

Differential Revision: https://phabricator.services.mozilla.com/D172708
2023-03-20 08:55:28 +00:00
Alexandre Poirot
9828f2bd31 Bug 1822488 - [devtools] Display stacktraces for DOMException's. r=devtools-reviewers,nchevobbe
We are currently showing stacks for Error-like objects but not for DOMExceptions.
console.log("foo", new Error("bar")) would print bar's stacktraces, while we wouldn't for: console.log("foo", new DOMException("bar")).

Should we merge DOMException and Error previewers?
DOMException is only having code and result attributes which Error objects don't have.

Differential Revision: https://phabricator.services.mozilla.com/D172707
2023-03-20 08:55:28 +00:00
Ben Hearsum
0f406fef0f Bug 1822406: rst linter complains about mermaid diagrams r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D172609
2023-03-20 08:48:26 +00:00
Frederic Wang
45ee832ea3 Update mathvariant WPT tests. Bug 1821980, r=emilio
In MathML Core, the mathvariant attribute is now restricted to the mi
element and to value "normal". Some related WPT tests were updated in
[1]. This commit moves other tests assuming full mathvariant support
into our internal tests. It also tweaks some existing tests to only
rely on MathML Core features.

* mathvariant-basic-transforms-with-default-font.html: This test assumes support for italic, bold and bold-italic mathvariants so move it to internal tests.
* mathvariant-case-sensitivity.html: This one tests all mathvariant values, so move it to internal tests.
* mathvariant-double-struck-font-style-font-weight.html: This test assumes support for double-struck mathvariant so move it to internal tests.
* Other generated mathvariant-*.html tests for each value (other than "normal") are also moved to internal tests.
* direction.html: Remove use of mathvariant="bold" since this test is actually testing the dir attribute.
* presentational-hints-001.html: Verify that local author style for text-transform wins over presentation hints for mathvariant. Tweak it to use value "normal" on the mi element and text-transform: uppercase.
* presentational-hints-002.html: This is testing dynamic setting of mathvariant. Tweak it to use value "normal" on the mi element.

[1] https://github.com/web-platform-tests/wpt/pull/38490

Differential Revision: https://phabricator.services.mozilla.com/D172871
2023-03-20 08:35:52 +00:00
Makoto Kato
1fb19c9d52 Bug 1822246 - Part 3. Add patch file to moz.yaml. r=media-playback-reviewers,padenot
Depends on D172651

Differential Revision: https://phabricator.services.mozilla.com/D172652
2023-03-20 07:39:46 +00:00
Makoto Kato
6128506617 Bug 1822246 - Part 2. Build assembler files via clang. r=media-playback-reviewers,padenot
libtheora's assembler isn't compatible with clang's internal assembler even
if it convert to GNU AS syntax.

Since unified syntax is compatible with clang, I have to modify assembler files
for compatibility.

Depends on D172650

Differential Revision: https://phabricator.services.mozilla.com/D172651
2023-03-20 07:39:45 +00:00
Makoto Kato
6bd820b136 Bug 1822246 - Part 1. Fix moz.yaml of libtheora to work correctly. r=media-playback-reviewers,padenot
When running `./mach vendor media/libtheora/moz.yaml`, it doesn't copy same
files correctly.

Differential Revision: https://phabricator.services.mozilla.com/D172650
2023-03-20 07:39:45 +00:00
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