Commit Graph

834742 Commits

Author SHA1 Message Date
Marco Castelluccio
56f93684c9 Bug 1804450 - Use 'shortest' expiration for crashreporter symbols. r=taskgraph-reviewers,jmaher DONTBUILD
Depends on D173012

Differential Revision: https://phabricator.services.mozilla.com/D173013
2023-03-20 14:03:51 +00:00
Marco Castelluccio
d3c0a68b9c Bug 1804450 - Add a 'shortest' expiration policy. r=taskgraph-reviewers,jmaher DONTBUILD
This is to be used for artifacts that are ingested by other services right away, e.g. crash symbols or coverage data.

Differential Revision: https://phabricator.services.mozilla.com/D173012
2023-03-20 14:03:50 +00:00
Emilio Cobos Álvarez
3d76dfa5ff Bug 1822759 - Use min-height: auto for permissions in pageInfo window. r=dao
That gets the right behavior even with flex-shrink: 1. An alternative
would be to also set flex-shrink: 0, but I don't see how this min-height
is useful so may as well remove code. Either way.

Depends on D172767

Differential Revision: https://phabricator.services.mozilla.com/D172768
2023-03-20 14:03:31 +00:00
Emilio Cobos Álvarez
d6cd984646 Bug 1822759 - Unify pageInfo.css. r=dao
Except the header styles, most of the other styles are identical.

Differential Revision: https://phabricator.services.mozilla.com/D172767
2023-03-20 14:03:31 +00:00
Olli Pettay
e04ab8699c Bug 1823397, Try to avoid allocations when handling mapped attributes, r=emilio
Depends on D173017

Differential Revision: https://phabricator.services.mozilla.com/D173018
2023-03-20 13:56:01 +00:00
Olli Pettay
557baad70b Bug 1823397, Add nsAutoAtom*String, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173017
2023-03-20 13:56:00 +00:00
lyavor
784f78bfb7 Bug 1804684 - Fragment navigation may change document URI scheme from https to http r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D165282
2023-03-20 13:46:20 +00:00
Luca Greco
f34bba48bf Bug 1823390 - Replace extension.readJSON with fetch to reduce perf impact of loading the DNR ruleset. r=robwu
`DNRStore`'s `#getManifestStaticRulesets` method is currently using `extension.readJSON` to load the JSON files
for the DNR static rulesets enabled, but internally `extension.readJSON` calls `String.prototype.replace` with
a regular expression to remove inline comments from the JSON files data retrieved and that have a noticebeable
impact due to the size that the DNR rulesets size may likely have (especially compared to the usual size of
manifest.json and locale files may have).

Given that Chrome doesn't support inline comments in DNR rulesets, we can consider replacing the call to
`extension.readJSON` with `fetch`, which wouldn't allow inline comments in the rulesets JSON files but
it would have a smaller impact due to not going through a call to `String.prototype.replace` and through
the js RegExp evaluations.

Alternatively we may consider keeping the call to `extension.readJSON` but tweak it to make sure we opt
out from the call to `String.prototype.replace` for this particular call (by also tweaking readJSON
method to allow that).

Differential Revision: https://phabricator.services.mozilla.com/D172604
2023-03-20 13:46:14 +00:00
Luca Greco
f0025f6986 Bug 1823390 - Fix typo in assertion message in head_dnr.js. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D172603
2023-03-20 13:46:14 +00:00
Byron Campen
f162da1700 Bug 1821231: Take RTX stats into account for outbound-rtp stats. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D172615
2023-03-20 13:44:35 +00:00
serge-sans-paille
5b6a2dae54 Bug 1822901 - Forward declare arch-specific xsimd specialization r=padenot
Otherwise the compiler tries to instantiate the generic version based on
its current architecture flags, which may not be enough, resulting in
error along those lines:

        'xsimd::batch<float, xsimd::neon> vgainr' has incomplete type

Differential Revision: https://phabricator.services.mozilla.com/D172864
2023-03-20 13:07:38 +00:00
Andrew Halberstadt
577c4dacfe Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172359
2023-03-20 13:06:28 +00:00
Andrew Halberstadt
82d9947901 Bug 1811850 - [lint] Replace pylint linter with ruff, r=linter-reviewers,marco
This is enabling the PLE and PLC rules across a much larger swatch of the code
base. The PLR and PLW are additionally enabled at the warning level (introduces
~2500 new warnings).

To avoid extraneous changes in people's patches, rules at the warning level are
excluded from --fix.

Differential Revision: https://phabricator.services.mozilla.com/D172358
2023-03-20 13:06:28 +00:00
Andrew Halberstadt
441546dc79 Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau
This results in some changes from our current `isort` configuration. I'm
unclear if it's because ruff isn't at 100% parity with isort, they choose
different defaults or if I missed some configuration.

Either way, the changes all look reasonable to me (see child commit), so I'm
inclined to just accept the new import format it imposes.

Differential Revision: https://phabricator.services.mozilla.com/D172348
2023-03-20 13:06:27 +00:00
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