Commit Graph

875700 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
d39e78a02e Bug 1883435 - Don't include GleanMetrics.h from Document.h. r=chutten,necko-reviewers,valentin
In bug 1883435 comment 2 chutten mentions that including
nsGlobalWindowInner.h from GleanMetrics.h causes a stylo build failure.

This is because nsGlobalWindowInner.h itself brings a bunch of DOM
bindings template soup that bindgen isn't great at dealing with.

That can be fixed in various ways. However, there is a simpler fix,
which is not including GleanMetrics at all.

It's trivial to do, and given it's a massive autogenerated file, and
Document.h is a very common header, it's worth doing this if only for
build times.

Fix a bunch of unused includes while at it.

Differential Revision: https://phabricator.services.mozilla.com/D203625
2024-03-05 17:54:14 +00:00
Tarek Ziadé
9fbc1f39bf Bug 1881522 - Extend PromiseWorker to allow bi-directional communication r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D202563
2024-03-05 17:53:54 +00:00
KS
92b5dc2296 Bug 1689537 - Add Python support class for MotionMark 1.3. r=perftest-reviewers,sparky
This patch uses our raptor support class for custom tests. The data
handling shares a lot of similarities to existing benchmark tests
e.g. speedometer3, and that is leveraged here.

Differential Revision: https://phabricator.services.mozilla.com/D202533
2024-03-05 17:51:36 +00:00
KS
3735e80a72 Bug 1689537 - Add MotionMark 1.3 browsertime script. r=perftest-reviewers,aglavic
This patch adds a custom test script to run motionmark with browsertime.
As we are not vendoring in tree and applying custom patches, it is
convenient instead here to make use javascript directly to start the
benchmark controller.

Differential Revision: https://phabricator.services.mozilla.com/D202532
2024-03-05 17:51:36 +00:00
KS
2f2ae039a8 Bug 1689537 - Update config files for MotionMark 1.3 benchmark. r=perftest-reviewers,aglavic
This patch updates the toml/yml files necessary to run motionmark 1.3.
An external repo model is used here rather than vendoring in-tree, as
this should be more advantageous going forward.
Brand new files (motionmark-1-3-<desktop/mobile>.toml) are added rather
than adding it to the existing motionmark animometer/htmlsuite config files.
This should be easier to maintain going forward (if for example we
decide to remove the previous motionmark). And also there has has been
so many changes since motionmark 1.0, it may be worth thinking of this
as a new benchmark entirely.

It is also worth noting that what was formerly known as
`motionmark-animometer` is now just `motionmark`. However htmlsuite is
still the same.

Differential Revision: https://phabricator.services.mozilla.com/D202531
2024-03-05 17:51:35 +00:00
Jari Jalkanen
02e530ce27 Bug 1791767 - Interrupt IDB idle maintenance with atomic flag. r=janv,dom-storage-reviewers,jstutte
Previously, idle maintenance was interrupted whenever a new runnable was
posted to the executing thread. Here we replace this interrupt signal with
an explicit boolean flag in order to support task queue event targets.

Differential Revision: https://phabricator.services.mozilla.com/D165984
2024-03-05 17:44:00 +00:00
Mark Banner
a4f1976fe2 Bug 1883601 - Properly apply OpenSearch overrides to search engines after a restart. r=search-reviewers,mcheang
The test wasn't detecting the restart issues because it was using the wrong 'engine' object to run the
comparisons against and was hence using an older version of the object which did have the correct urls.

Differential Revision: https://phabricator.services.mozilla.com/D203602
2024-03-05 17:33:14 +00:00
Iain Ireland
dd93190dbb Bug 1870925: Add test r=jonco
Depends on D197098

Differential Revision: https://phabricator.services.mozilla.com/D197099
2024-03-05 17:26:44 +00:00
Ray Kraesig
63da1c4a96 Bug 1880192 - [5/5] MozPromise.h: inline single-use implementation function r=xpcom-reviewers,emilio
Remove non-rvalue-reference overload of InvokeAsync, added 7 years ago
and not once used.

Differential Revision: https://phabricator.services.mozilla.com/D201788
2024-03-05 17:22:23 +00:00
Ray Kraesig
12caa0b1d0 Bug 1880192 - [4/5] Remove IsRefcountedSmartPointer r=xpcom-reviewers,nika
Following the previous patch, `IsRefcountedSmartPointer` is no longer
needed in ThreadUtils.h. Replace the one remaining use in MozPromise.h
with a more precise version tailored to that use-site.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201787
2024-03-05 17:22:22 +00:00
Ray Kraesig
fe17c87862 Bug 1880192 - [3.5/5] ThreadUtils.h: remove little-used storage cases r=xpcom-reviewers,necko-reviewers,jesup,nika
`const T&&` parameters don't have associated storage semantics defined
for them. Previously they would end up as `StoreCopyPassByRRef`, which
might even have been intentional. Forbid them, and change the one use
case invoking it to a non-reference (becoming StoreCopyPassByConstLRef).

Additionally, there are four optional storage classes that are never
automatically selected. Two of these are never used, and a third is only
used mistakenly (...ByLRef where only ...ByConstLRef is needed). Adjust
the third's use-sites, and remove all three.

The last, `StoreCopyPassByPtr`, has more of an argument to be kept: it's
simpler to use (and, arguably, to understand) than its lambda-function
equivalent when wrapping an XPCOM method that takes an [in]-pointer
argument -- but it has only one use site in the entire codebase. Replace
and remove it, as well.

No functional changes. All deleted cases remain possible via lambda
functions fed to NS_NewRunnableFunction.

Differential Revision: https://phabricator.services.mozilla.com/D202173
2024-03-05 17:22:22 +00:00
Ray Kraesig
7bcc5b520f Bug 1880192 - [3/5] ThreadUtils.h: remove std::conditional use r=xpcom-reviewers,nika
Using `std::conditional` unconditionally instantiates both of its
type-arguments, regardless of the value of its boolean argument. This
means that the entire tree of auxiliary metafunction-types were being
instantiated by any use of ParameterStorage -- i.e., at least once per
use of NewRunnableMethod, plus one for each explicit parameter the
method took.

Use partial specialization both to significantly simplify the selection
code (replacing most explicit tests), ensuring that only O(log n))
templates are instantiated, rather than O(n).

As verified by the unchanged TestThreadUtils.cpp, no functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201786
2024-03-05 17:22:22 +00:00
Ray Kraesig
d933a73374 Bug 1880192 - [2/5] ThreadUtils.h: some C++17 modernizations r=xpcom-reviewers,emilio
Remove some type-level indirections from the SmartPointer template-
metaprogramming helpers.

Additionally, replace some nearby uses of `typedef` with `using`, as
suggested by clang-tidy.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201785
2024-03-05 17:22:21 +00:00
Ray Kraesig
5cf89251a2 Bug 1880192 - [1/5] MozPromise.h: some C++17 modernizations r=xpcom-reviewers,emilio
Remove some type-level indirections from template-metaprogramming
helpers.

Additionally, replace some nearby uses of `typedef` with `using`, as
suggested by clang-tidy.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201784
2024-03-05 17:22:21 +00:00
Cristian Tuns
912388edd2 Backed out changeset 498c23b2d670 (bug 1883143) for causing failures in nsContentSecurityUtils.cpp CLOSED TREE 2024-03-05 13:19:07 -05:00
Cristian Tuns
3ea845929a Backed out 12 changesets (bug 934640) for causing wpt failures in idb-explicit-commit.any.html CLOSED TREE
Backed out changeset f842e5594224 (bug 934640)
Backed out changeset 3cf1e31d16ba (bug 934640)
Backed out changeset ba85838ef7cd (bug 934640)
Backed out changeset a2769ba4c0ab (bug 934640)
Backed out changeset 3a2af6a310ab (bug 934640)
Backed out changeset 8bbe6f8fb695 (bug 934640)
Backed out changeset 184282e69b59 (bug 934640)
Backed out changeset f3b863806999 (bug 934640)
Backed out changeset ed5bb2e976ef (bug 934640)
Backed out changeset f315683fd3ba (bug 934640)
Backed out changeset 30dbc38c3e9a (bug 934640)
Backed out changeset ef90771d141d (bug 934640)
2024-03-05 13:17:12 -05:00
Mark Banner
4f1d29d324 Bug 1883371 - Enable ESLint rule no-console on production code. r=mossop,webcompat-reviewers,devtools-reviewers,omc-reviewers,twisniewski,nchevobbe,aminomancer
Allow for console.error, console.warn and console.createInstance, but fail for everything else.

Differential Revision: https://phabricator.services.mozilla.com/D203456
2024-03-05 16:56:57 +00:00
Mark Banner
5ee6fc544c Bug 1883371 - Add a general configuration for rules specific for all tests. r=mossop
This gives us the option to specify rule variations for all tests without having to copy across the configurations.

More importantly, we can also apply this to anything under `/test/` or `/tests/` and so we can catch utils and other files that the specific test configurations don't already catch.

Differential Revision: https://phabricator.services.mozilla.com/D203455
2024-03-05 16:56:57 +00:00
Niklas Baumgardner
3f47fc8b3d Bug 1883143 - Initial profiles setup. r=jhirsch,mossop
Differential Revision: https://phabricator.services.mozilla.com/D203299
2024-03-05 16:50:31 +00:00
Norisz Fay
f21db3bc57 Backed out 25 changesets (bug 1858958, bug 1749044, bug 1859536) for causing bustages on AppleATDecoder.cpp and AudioData related failures CLOSED TREE
Backed out changeset 21402b00cc81 (bug 1749044)
Backed out changeset 20d58a991964 (bug 1749044)
Backed out changeset 6e7ee116c90e (bug 1749044)
Backed out changeset 7a3cd601c7a1 (bug 1749044)
Backed out changeset 2ec9140f8724 (bug 1749044)
Backed out changeset a33714bc62c4 (bug 1749044)
Backed out changeset 583617a9e949 (bug 1749044)
Backed out changeset 145a8190f6fc (bug 1749044)
Backed out changeset e67de77033d2 (bug 1858958)
Backed out changeset e8a916a76c18 (bug 1749044)
Backed out changeset dec9ce7a61a0 (bug 1749044)
Backed out changeset 961feba09c71 (bug 1749044)
Backed out changeset 7badb720d24b (bug 1749044)
Backed out changeset fd71b745d729 (bug 1749044)
Backed out changeset 874f792bb36f (bug 1858958)
Backed out changeset 22ff6bc3cb95 (bug 1859536)
Backed out changeset a04a238d1688 (bug 1859536)
Backed out changeset ac3bb1773f97 (bug 1858958)
Backed out changeset 886b419887c8 (bug 1858958)
Backed out changeset ea637545c497 (bug 1858958)
Backed out changeset fdc20c3b80d6 (bug 1858958)
Backed out changeset 5fec5cbf2af7 (bug 1858958)
Backed out changeset 73fffa240ac4 (bug 1858958)
Backed out changeset 25477e671dc0 (bug 1858958)
Backed out changeset 745df1a31541 (bug 1858958)
2024-03-05 19:06:31 +02:00
Geoff Brown
077b930ac0 Bug 1882616 - Add try presets for firefox-android r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D203335
2024-03-05 16:11:16 +00:00
Paul Adenot
d2f6ed95cf Bug 1878503 - Remove MOZ_FFVPX and the associated pref. r=glandium,media-playback-reviewers,geckoview-reviewers,alwu
ffvpx is now always compiled in, this is part a rationalization of the codec
libraries we're using.

Differential Revision: https://phabricator.services.mozilla.com/D202813
2024-03-05 16:06:49 +00:00
Barret Rennie
62f9921d69 Bug 1883695 - Require owner field for features r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D203622
2024-03-05 15:59:34 +00:00
Barret Rennie
d8b75b8a16 Bug 1878956 - Fix typo in generate_feature_manifest.py r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D203606
2024-03-05 15:58:51 +00:00
Otto Länd
969d1a91a2 Bug 1749044, 1858958, 1859536: apply code formatting via Lando
# ignore-this-changeset
2024-03-05 15:56:56 +00:00
Paul Adenot
8c7eaaaf32 Bug 1749044 - Teach the WMF audio decoder to handle ADTS. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192685
2024-03-05 15:52:20 +00:00
Paul Adenot
2b58bae621 Bug 1749044 - Fix warnings in WMF code. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192684
2024-03-05 15:52:20 +00:00
Paul Adenot
5d24210b4f Bug 1749044 - Make AppleATDecoder capable of decoding ATDS bytestream directly r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192363
2024-03-05 15:52:19 +00:00
Paul Adenot
738a845511 Bug 1749044 - Add a function to strip the ADTS header from a packet. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192361
2024-03-05 15:52:19 +00:00
Paul Adenot
899e51b376 Bug 1749044 - Move ADTS parsing facilities to their own file, split from the ADTS demuxer. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192360
2024-03-05 15:52:18 +00:00
Paul Adenot
7edb0cd8f7 Bug 1749044 - Remove some unnecessary headers. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192356
2024-03-05 15:52:18 +00:00
Paul Adenot
49771414ca Bug 1749044 - Improve some error messages. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192355
2024-03-05 15:52:18 +00:00
Paul Adenot
3cb81eb3cc Bug 1858958 - Mark AudioData tests that are optional to implement as such. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192353
2024-03-05 15:52:17 +00:00
Paul Adenot
72201eb898 Bug 1749044 - Move GetExtraData from VideoDecoder.cpp to WebCodecsUtils.cpp. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192352
2024-03-05 15:52:17 +00:00
Paul Adenot
c3b72ad05a Bug 1749044 - Implement AudioDecoder.cpp. r=chunmin,webidl,saschanaz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D192351
2024-03-05 15:52:16 +00:00
Paul Adenot
82d8271b6a Bug 1749044 - Fix typo in VideoDecoder.webidl. r=chunmin,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D192350
2024-03-05 15:52:16 +00:00
Paul Adenot
eadfcca36e Bug 1749044 - Instantiate another DecoderTemplate for audio. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192342
2024-03-05 15:52:16 +00:00
Paul Adenot
75ccd19497 Bug 1749044 - Fix lingering references to video decoding in DecoderTemplate.cpp. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192341
2024-03-05 15:52:15 +00:00
Paul Adenot
7952f9574e Bug 1858958 - Test more conversions, clearly mark planar->interleaved conversion as outside of spec. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192339
2024-03-05 15:52:15 +00:00
Paul Adenot
f1da88e1cb Bug 1859536 - Adjust expectation for now implemented EncodedAudioChunk. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192338
2024-03-05 15:52:14 +00:00
Paul Adenot
bc8b779120 Bug 1859536 - Implement EncodedAudioChunk. r=chunmin,webidl,saschanaz
I thought about not copy-pasting, but it didn't result in something that was
clearer, it was in fact more complex.

Differential Revision: https://phabricator.services.mozilla.com/D192337
2024-03-05 15:52:14 +00:00
Paul Adenot
c4357b3bf7 Bug 1858958 - Rewrite lots of the AudioData.copyTo test to support all sample-types. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D192344
2024-03-05 15:52:14 +00:00
Paul Adenot
2ba3f8bd39 Bug 1858958 - AudioData: all WPT now pass. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D190949
2024-03-05 15:52:13 +00:00
Paul Adenot
2455d934a1 Bug 1858958 - AudioData: structured cloning. r=chunmin,smaug
Differential Revision: https://phabricator.services.mozilla.com/D190948
2024-03-05 15:52:13 +00:00
Paul Adenot
ac661ca63d Bug 1858958 - AudioData: copyTo. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D190947
2024-03-05 15:52:12 +00:00
Paul Adenot
427534dc23 Bug 1858958 - Fix callers of audio sample type conversion facilities. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D190946
2024-03-05 15:52:12 +00:00
Paul Adenot
0d34729661 Bug 1858958 - Rewrite audio sample type conversion code. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D190945
2024-03-05 15:52:12 +00:00
Paul Adenot
f9168c29e7 Bug 1858958 - AudioData lifetime: constructors, close, clone. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D190944
2024-03-05 15:52:11 +00:00
Paul Adenot
58270121c0 Bug 1858958 - WebIDL file and skeleton code for AudioData. r=chunmin,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D190943
2024-03-05 15:52:11 +00:00
Kelly Cochrane
4356fdde79 Bug 1883337 - Ensure focus is moved when mute/unmute button is removed in Fx View r=fxview-reviewers,nsharpley,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D203484
2024-03-05 15:49:24 +00:00