Commit Graph

940655 Commits

Author SHA1 Message Date
Cristina Horotan
3931f35ec9 Backed out 39 changesets (bug 1932057, bug 1931932, bug 1931968, bug 1931969, bug 1932001, bug 1931937, bug 1931882, bug 1931995, bug 1931975, bug 1931879, bug 1932009, bug 1931448, bug 1932015, bug 1931912, bug 1927948, bug 1931923, bug 1932026, bug 1931999, bug 1931875, bug 1931981, bug 1931895, bug 1931126, bug 1930534, bug 1932077, bug 1931955) for causing wpt failures ShadowRealm related
Backed out changeset 13ebc1b5ef8e (bug 1932077)
Backed out changeset a0c02fa6ece7 (bug 1932026)
Backed out changeset a03fdf9cc2ea (bug 1932057)
Backed out changeset fdc02b8115ba (bug 1932057)
Backed out changeset e48c6e6ed430 (bug 1932009)
Backed out changeset 2c58a9927b34 (bug 1932009)
Backed out changeset 3c72550ec134 (bug 1932015)
Backed out changeset 19c27654bc2a (bug 1932001)
Backed out changeset 3f70f0dfa126 (bug 1931999)
Backed out changeset 15928df9cf2e (bug 1931999)
Backed out changeset 87371d78ed4e (bug 1931995)
Backed out changeset c9d90492cb6e (bug 1931448)
Backed out changeset 7b4a08d3a473 (bug 1931448)
Backed out changeset 8fee75905953 (bug 1931126)
Backed out changeset 1cb731d69125 (bug 1931126)
Backed out changeset 66fbbddb5895 (bug 1930534)
Backed out changeset 0a625225a525 (bug 1930534)
Backed out changeset ce191cb10c4d (bug 1931981)
Backed out changeset abc45a300701 (bug 1931975)
Backed out changeset f3d139af80a1 (bug 1931955)
Backed out changeset 7726ba113e46 (bug 1931955)
Backed out changeset eacb3e62688f (bug 1931968)
Backed out changeset ebf7d0374aa2 (bug 1931968)
Backed out changeset 969e670282e1 (bug 1931969)
Backed out changeset 0aa42f2f7af7 (bug 1931937)
Backed out changeset 1bc5ed8ce26d (bug 1931937)
Backed out changeset 8c6399a25139 (bug 1927948)
Backed out changeset 6c135cb96bab (bug 1927948)
Backed out changeset c5151a9fb53a (bug 1931923)
Backed out changeset c7644c5cd474 (bug 1931923)
Backed out changeset 18f18480637f (bug 1931932)
Backed out changeset 5e4e0baf94ba (bug 1931912)
Backed out changeset 2890be320ac4 (bug 1931882)
Backed out changeset 397355de74b0 (bug 1931882)
Backed out changeset 70149a7a1993 (bug 1931895)
Backed out changeset 0661a65a2454 (bug 1931875)
Backed out changeset 6b098292cbe3 (bug 1931875)
Backed out changeset 62239921d19b (bug 1931879)
Backed out changeset 73e41baa89bb (bug 1931879)
2024-11-20 15:55:56 +02:00
Andreas Farre
b0a345167c Bug 1931418 - Test that navigation isn't blocked due to recursive iframes. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D229586
2024-11-20 12:11:46 +00:00
Andreas Farre
b9d8dbcb9e Bug 1931418 - Reduce the amount of recursion checks. r=dom-core,sefeng
Modify the frame recursion check to only happen when a load is triggered
from a src or data attribute (depending on if it's an iframe, embed or
an object element). This prevents recursion checks from blocking
ordinary navigations and navigations with a target.

Differential Revision: https://phabricator.services.mozilla.com/D229503
2024-11-20 12:11:46 +00:00
mcarare
ee254dae97 Bug 1929237 - Enable and adapt tests for running on SDK 35. r=android-reviewers,giorga
Differential Revision: https://phabricator.services.mozilla.com/D229479
2024-11-20 11:51:13 +00:00
Randell Jesup
6492f517eb Bug 1917901: Make it ok to retarget OnDataAvailable multiple times until the first ODA is received r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D223651
2024-11-20 11:25:54 +00:00
Jens Stutte
4365342e90 Bug 1924461 - Add diagnostic assertions to pin down which type of process selection goes wrong. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D229581
2024-11-20 11:23:10 +00:00
Simon Friedberger
99b59852d2 Bug 1932329. Describe small logic error. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D229456
2024-11-20 11:10:43 +00:00
Andreas Pehrson
7806426971 Bug 1692873 - Use the same number of temporal layers for both screensharing and non-screensharing simulcast. r=webrtc-reviewers,ng
Differential Revision: https://phabricator.services.mozilla.com/D227493
2024-11-20 11:10:02 +00:00
Andreas Pehrson
d122b64bc0 Bug 1692873 - Enable simulcast for screensharing sources. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D189663
2024-11-20 11:10:02 +00:00
Andreas Pehrson
4d195149e2 Bug 1692873 - Create smaller video elements for playback in simulcast tests. r=jib
For debugging purposes, when the test fails in CI and creates a screenshot.
gDM sources tend to be large, and for the sake of this test they should be
encoded large too. This shrinks the dimensions of the rendered video tracks
instead.

Differential Revision: https://phabricator.services.mozilla.com/D227492
2024-11-20 11:10:01 +00:00
Andreas Pehrson
14996d0efd Bug 1692873 - Add mochitest for simulcast screensharing. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D227491
2024-11-20 11:10:01 +00:00
Andreas Pehrson
f128d9f474 Bug 1692873 - Add VideoConduit gtests for screensharing. r=webrtc-reviewers,ng
Differential Revision: https://phabricator.services.mozilla.com/D227490
2024-11-20 11:10:00 +00:00
Jan-Ivar Bruaroey
35ecf13689 Bug 1692873 - Test simulcast screenshare in webrtc/simulcast/screenshare.https.html WPT. r=bwc
Depends on D189663

Differential Revision: https://phabricator.services.mozilla.com/D189677
2024-11-20 11:10:00 +00:00
Adam Brouwers-Harries
d90a2437e3 Bug 1919331 - Add profiler markers for Glean::DatetimeMetric r=florian,chutten
Differential Revision: https://phabricator.services.mozilla.com/D226007
2024-11-20 10:59:19 +00:00
Adam Brouwers-Harries
821d19fb7a Bug 1919354 - Add profiler markers for Glean::UrlMetric r=florian,chutten
Differential Revision: https://phabricator.services.mozilla.com/D226182
2024-11-20 10:59:18 +00:00
Adam Brouwers-Harries
310a84ff32 Bug 1919350 - Unify string-like markers into one central struct and schema. (re)Add markers for String, Text, Uuid, and StringList metrics r=florian,chutten
Differential Revision: https://phabricator.services.mozilla.com/D226020
2024-11-20 10:59:18 +00:00
Max Inden
7b563e9902 Bug 1932137 - update Rust url crate to v2.5.3 r=valentin,supply-chain-reviewers
See `url` GitHub release https://github.com/servo/rust-url/releases/tag/v2.5.3.

Unblocks https://github.com/mozilla/neqo/pull/2208.

Differential Revision: https://phabricator.services.mozilla.com/D229493
2024-11-20 10:55:09 +00:00
Norisz Fay
8c51927dbd Backed out changeset f7e09524c9bd (bug 1915867) for causing multiple wpt failures CLOSED TREE 2024-11-20 13:00:43 +02:00
AndiAJ
6d9c02e321 Bug 1932284 - Revert url verifications in UI tests r=ohorvath
28 UI tests started to fail all of a sudden after [[ https://phabricator.services.mozilla.com/D229397#change-b6xmo9pT7DsO | this ]] change landed.

The failures were caused by the change that was done to **verifyUrl**.
  - The change wasn't needed, as Ben didn't take use of it anywhere
  - _url.host in that format will return null, if the protocol isn't added to the url it can't be parsed properly

Since these sort of changes weren't on our radar and since Ben doesn't need them in his new UI tests, I've reverted back the change related to **verifyUrl**
If we want to make that sort of changes when verifying the url's I can refactor the function and the existing UI tests in a separate diff.

All UI tests successfully passed 1x on Firebase 

In the [[ https://phabricator.services.mozilla.com/D229397#7933912 | try ]] mentioned here, only the new UI test ran,  and that's why the other failures flew under the radar

Differential Revision: https://phabricator.services.mozilla.com/D229589
2024-11-20 10:22:17 +00:00
Diego Ciudad Real Escalante
1896a9a633 Bug 1927080 - Copy Without Site Tracking: Strip query parameter "pp" on youtube.com r=manuel,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D229554
2024-11-20 10:03:23 +00:00
Peter Van der Beken
11b2d4633a Bug 1927517 - Assertion failure: !(result & nsContentUtils::eParseHTMLInteger_ErrorOverflow), at /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp:5231. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D227520
2024-11-20 09:58:50 +00:00
Jan de Mooij
c618fda03b Bug 1931815 part 6 - Avoid GC barrier checks for private values. r=jonco
Profiling the previous patches on micro-benchmarks showed some functions that
weren't being inlined by Clang. With this patch we generate better code for
the reserved slot accesses and inline more code.

Differential Revision: https://phabricator.services.mozilla.com/D229582
2024-11-20 09:54:10 +00:00
Jan de Mooij
039b4ffbf7 Bug 1931815 part 5 - Remove now unused Nursery::allocateBufferSameLocation. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D229338
2024-11-20 09:54:10 +00:00
Jan de Mooij
14cdabfd15 Bug 1931815 part 4 - Remove now unused JIT free stub. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D229337
2024-11-20 09:54:09 +00:00
Jan de Mooij
6a5602a20b Bug 1931815 part 3 - Fold OrderedHashTable Range objects into Map/Set iterator objects. r=jonco
The `Range` objects are now only used for the iterator objects, so we can store
this state directly in the iterators. This patch adds a `TableIteratorObject`
base class for `MapIteratorObject` and `SetIteratorObject` and replaces `Range`
with this base class.

The shared base class also helps reduce code duplication for `Map` and `Set`
iterators.

The `Range` objects could be nursery-allocated so this is unlikely to improve
performance a lot, but it gets rid of the indirection and simplifies the code.

Differential Revision: https://phabricator.services.mozilla.com/D229336
2024-11-20 09:54:09 +00:00
Jan de Mooij
abfd91c962 Bug 1931815 part 2 - Improve SelfHostingDefines.h constants a bit. r=jonco
Split `ITERATOR_SLOT_ITEM_KIND` in separate `ARRAY_ITERATOR_SLOT_ITEM_KIND` and
`MAP_SET_ITERATOR_SLOT_ITEM_KIND` constants to prepare for later patches.

Add missing static assertions for array and string iterator object slots.

Remove the unused `ITERATOR_SLOT_RANGE` constant.

Differential Revision: https://phabricator.services.mozilla.com/D229335
2024-11-20 09:54:08 +00:00
Jan de Mooij
f83ff140b4 Bug 1931815 part 1 - Rename getRangesPtr to addressOfRanges and add NativeObject::addressOfFixedSlotPrivatePtr. r=jonco
A later patch will add similar code for the iterator objects and this lets us share
a bit more code.

Differential Revision: https://phabricator.services.mozilla.com/D229334
2024-11-20 09:54:08 +00:00
Nazım Can Altınova
3dab5360a0 Bug 1716084 - Use StaticAutoPtr instead for ProfilerParentTracker global instance r=aabh,profiler-reviewers
Previously we were using a static UniquePtr to hold the static
ProfilerParentTracker instance. This was causing us to always try to call the
destructor on the exit handlers. But this should only happen during a normal
shutdown, we register that cleanup here:
https://searchfox.org/mozilla-central/rev/b477cd37e845005dac8881427fa06a2771d993db/tools/profiler/gecko/ProfilerParent.cpp#520.
StaticAutoPtr doesn't have a static destructors, which avoids the risk of some
static destructors running due to a failure early during startup.

Differential Revision: https://phabricator.services.mozilla.com/D229362
2024-11-20 09:42:15 +00:00
William Durand
13c85936fc Bug 1915867 - Fix recommended extensions' LTR descriptions in RTL mode. r=mcarare,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D229583
2024-11-20 09:30:13 +00:00
moz-wptsync-bot
aaf23cb48e Bug 1932077 - [wpt-sync] Update web-platform-tests to 7e47e52d5496ce246ca27fa395cceaa0df8169b0, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: 7e47e52d5496ce246ca27fa395cceaa0df8169b0
wpt-type: landing
2024-11-20 09:15:14 +00:00
Espen Hovlandsdal
731ad89204 Bug 1932026 [wpt PR 49256] - Add myself as reviewer of EventSource tests, a=testonly
Automatic update from web-platform-tests
Add myself as reviewer of EventSource tests

--

wpt-commits: 7e47e52d5496ce246ca27fa395cceaa0df8169b0
wpt-pr: 49256
2024-11-20 09:15:13 +00:00
moz-wptsync-bot
578471d187 Bug 1932057 [wpt PR 49258] - Update wpt metadata, a=testonly
wpt-pr: 49258
wpt-type: metadata
2024-11-20 09:15:12 +00:00
rubberyuzu
a5a81bc41e Bug 1932057 [wpt PR 49258] - [built-in-ai] Expose ai.translator and make AITranslatorFactory work, a=testonly
Automatic update from web-platform-tests
[built-in-ai] Expose ai.translator and make AITranslatorFactory work

This CL does two things:
(1) Expose translator to ai
(2) Make AITranslator work correctly (call CreateTranslator from
AITranslatorFactory)
Most of the code is copied from translator.cc and langauge_translator.cc.

Bug: 379643382
Change-Id: If2341b958cd9dcb2641891ff3aabf02e760e4b47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6023056
Reviewed-by: Fergal Daly <fergal@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Yuzu Saijo <yuzus@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384790}

--

wpt-commits: 1e81aa2423692dd724d5dfa3c94f60143b8474f7
wpt-pr: 49258
2024-11-20 09:15:12 +00:00
moz-wptsync-bot
b062a35736 Bug 1932009 [wpt PR 49251] - Update wpt metadata, a=testonly
wpt-pr: 49251
wpt-type: metadata
2024-11-20 09:15:11 +00:00
Sam Davis Omekara (from Dev Box)
5d5e6cb207 Bug 1932009 [wpt PR 49251] - [Gap Decorations]: Introduce ColumnRuleWidth on ComputedStyle, a=testonly
Automatic update from web-platform-tests
[Gap Decorations]: Introduce ColumnRuleWidth on ComputedStyle

This CL introduces a new data structure to extend the ColumnRuleWidth
property for the gap decorations feature. Previously, the
`column-rule-width` property could hold only a single width value.
However, with the gap decorations feature, this property can now hold
multiple values. The CL utilizes the `GapDataList` template data
structure to store these values in the computed style object.
Additionally, sites that expect a single width value have been updated
to call `GetLegacyValue()`, which returns the single width.

The CL also updates the parsing logic to return nullptr when no values
are present, allowing the use of the default value.

The code is exercised through the gap-decorations-width-computed.html
test.

Bug: 357648037
Change-Id: I5a28f332c57b16f90d7647c4b601b6eb32f7bb6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5967393
Commit-Queue: Sam Davis Omekara <samomekarajr@microsoft.com>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1384732}

--

wpt-commits: e6a6269cfd6983b96558f6daf4f70a69f37062dd
wpt-pr: 49251
2024-11-20 09:15:10 +00:00
Mason Freed
cb0b04bc09 Bug 1932015 [wpt PR 49254] - Mark three new dialog tests as slow tests, a=testonly
Automatic update from web-platform-tests
Mark three new dialog tests as slow tests

These all seems to flaky-fail with a timeout on some Mac platforms.
Mark them slow tests to give them more time.

Fixed: 377943753,379418916
Change-Id: Idfe412cfacd521894dde745cd788d803ac27c719
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6033672
Commit-Queue: Di Zhang <dizhangg@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: Di Zhang <dizhangg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384687}

--

wpt-commits: 0177fdb37a8401d692cd0696f983ff75f453bd39
wpt-pr: 49254
2024-11-20 09:15:10 +00:00
Fredrik Söderquist
6fc48cd61f Bug 1932001 [wpt PR 49247] - Funnel angle value updates in SVGAngle through NewValueSpecifiedUnits, a=testonly
Automatic update from web-platform-tests
Funnel angle value updates in SVGAngle through NewValueSpecifiedUnits

Refactor/structure the code so that all cases[*] that set the
`value_in_specified_units_` field does so using NewValueSpecifiedUnits.
This makes it easier to guarantee that the value the orient type enum is
only updated in one place, and that updating it isn't forgotten. Factor
out the conversion from one angle unit to another into a helper, to
facilitate this.

This fixes an issue where the 'valueInSpecifiedUnits' setter didn't
update the orient type.

Export the test svg/dom/SVGMarkerElement-orientType-synchronization.html
to WPT and add an additional case that tests the above.

[*] Code-paths that reset said field when the orient type changes still
    (re)set the value themselves.

Fixed: 378120437
Change-Id: I59845590f60d1edbf022a71103d3c6fb3a21aec1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6023025
Reviewed-by: Philip Rogers <pdr@chromium.org>
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384659}

--

wpt-commits: 9c10ca38b25cc32190c4536e2b2b18c71d0acbb9
wpt-pr: 49247
2024-11-20 09:15:09 +00:00
moz-wptsync-bot
55378790fe Bug 1931999 [wpt PR 49246] - Update wpt metadata, a=testonly
wpt-pr: 49246
wpt-type: metadata
2024-11-20 09:15:08 +00:00
Ayu Ishii
66c4b5490c Bug 1931999 [wpt PR 49246] - AI: Use SecureContext for languageModel API, a=testonly
Automatic update from web-platform-tests
AI: Use SecureContext for languageModel API

This change updates languageModel API to use `SecureContext`.
Missed in https://crrev.com/c/6020818 due to rename.

Bug: 372311600
Change-Id: If4ea0c117da38e17b2b33df9b0020bf8218b41f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6027212
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384649}

--

wpt-commits: 90ae0db28e5a2a12860a1c5131a5dab43fd8eb43
wpt-pr: 49246
2024-11-20 09:15:07 +00:00
luci-bisection@appspot.gserviceaccount.com
d1ed8d9848 Bug 1931995 [wpt PR 49245] - Revert "Deflake and speed up LoAF tests", a=testonly
Automatic update from web-platform-tests
Revert "Deflake and speed up LoAF tests"

This reverts commit 058683c45f4b066aa9fca0c9bc73e717b90981ca.

Reason for revert:
LUCI Bisection has identified this change as the cause of a test failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/test-analysis/b/6038363481047040

Sample build with failed test: https://ci.chromium.org/b/8730896296404983105
Affected test(s):
[ninja://:blink_wpt_tests/external/wpt/long-animation-frame/tentative/loaf-first-ui-event.html](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2F:blink_wpt_tests%2Fexternal%2Fwpt%2Flong-animation-frame%2Ftentative%2Floaf-first-ui-event.html?q=VHash%3A402a4a508f2b5677)
[ninja://:blink_wpt_tests/virtual/threaded/external/wpt/long-animation-frame/tentative/loaf-first-ui-event.html](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2F:blink_wpt_tests%2Fvirtual%2Fthreaded%2Fexternal%2Fwpt%2Flong-animation-frame%2Ftentative%2Floaf-first-ui-event.html?q=VHash%3A402a4a508f2b5677)

If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Ftest-analysis%2Fb%2F6038363481047040&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F6022841&type=BUG

Original change's description:
> Deflake and speed up LoAF tests
>
> The main cause for flakiness in long-animation-frame tests
> was the fact that long animation frames can be caused by
> arbitrary system operations, unrelated to the ones created by
> the test, and those would generate noise that would make the
> tests believe that the entries are incorrect.
>
> The previous mitigation was to generate really long LoAFs (360ms),
> filter only really-long LoAFs, and also retry 10 times.
> However, this brittle approach had several issues:
> - In some cases there could be enough noise where this wouldn't filter
>   it well enough.
> - If the implementation itself is flaky, the test would pass.
> - It makes the test very slow and CPU-consuming (a generated LoAF is
>   a CPU spin).
>
> The new approach, is to mark the time during calls to `busy_wait`,
> and filter only the LoAFs that contain the actual `busy_wait` call.
> This filters out any LoAF that we didn't generate ourselves in the test.
> This also allows us to reduce the `busy_wait` time from 360ms to 120ms.
>
> Refactored some tests to call the utils `busy_wait` instead of rolling
> their own.
>
> Bug: 40263438
> Bug: 41484738
> Bug: 369956892
> Bug: 336691003
> Bug: 335003887
> Change-Id: Idf3505aef54837f7d7200b0dc57dffdec7c748c6
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022841
> Reviewed-by: Scott Haseley <shaseley@chromium.org>
> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1384560}
>

Bug: 40263438
Bug: 41484738
Bug: 369956892
Bug: 336691003
Bug: 335003887
Change-Id: If148ca8270cd4a5b5c250cd9cc25a833f0f307cf
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6032015
Reviewed-by: Scott Haseley <shaseley@chromium.org>
Owners-Override: Kelvin Jiang <kelvinjiang@chromium.org>
Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org>
Reviewed-by: Kelvin Jiang <kelvinjiang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384642}

--

wpt-commits: 3751f752fdaad298676d6801cb6f6e9a3f0cbdaa
wpt-pr: 49245
2024-11-20 09:15:07 +00:00
moz-wptsync-bot
397a0036ea Bug 1931448 [wpt PR 49188] - Update wpt metadata, a=testonly
wpt-pr: 49188
wpt-type: metadata
2024-11-20 09:15:06 +00:00
Philip Chimento
ca00c0dc56 Bug 1931448 [wpt PR 49188] - Enable ShadowRealm testing for atob/btoa, a=testonly
Automatic update from web-platform-tests
Enable ShadowRealm testing for atob/btoa

Adds the appropriate metadata for the existing tests for the functionality
of atob() and btoa() to additionally be run in a ShadowRealm.

We also have to use the test harness's fetch_json() to fetch the test data
instead of fetch(), which is not exposed in ShadowRealm.

--

wpt-commits: f4c5e40b830cb5811d9838a03b1e95e0c9d4323f
wpt-pr: 49188
2024-11-20 09:15:05 +00:00
moz-wptsync-bot
c77e3bc6ca Bug 1931126 [wpt PR 49159] - Update wpt metadata, a=testonly
wpt-pr: 49159
wpt-type: metadata
2024-11-20 09:15:04 +00:00
Philip Chimento
a505691270 Bug 1931126 [wpt PR 49159] - Enable ShadowRealm testing for DOMException, a=testonly
Automatic update from web-platform-tests
Enable ShadowRealm testing for DOMException

Adds the appropriate metadata for the existing tests for the functionality
of DOMException to additionally be tested in a ShadowRealm.

Adds the same IDL array to the IDL tests for DOMExceptions in ShadowRealm
as for DOMExceptions in other realms.

--

wpt-commits: 73195b08b0d7a4a4251f8b3399af24efd3de17cc
wpt-pr: 49159
2024-11-20 09:15:04 +00:00
moz-wptsync-bot
31615096f6 Bug 1930534 [wpt PR 49108] - Update wpt metadata, a=testonly
wpt-pr: 49108
wpt-type: metadata
2024-11-20 09:15:03 +00:00
Philip Chimento
10340a4bf4 Bug 1930534 [wpt PR 49108] - Run ShadowRealm tests in multiple scopes, a=testonly
Automatic update from web-platform-tests
Change 'shadowrealm' global into a shorthand for all possible ShadowRealm scopes

In order to automatically run tests not only in a ShadowRealm created in a
window scope, but also in ShadowRealms created in other realms, change the
'shadowrealm' global type to a collection, and rename the existing
ShadowRealm handler to 'shadowrealm-in-window'.

--
Remove monkeypatch of globalThis.self in ShadowRealm

As per https://github.com/whatwg/html/pull/9893, ShadowRealmGlobalScope
should have a `self` attribute already. There is no need to monkeypatch it
for the test harness.

--
Factor out JS code that will be common to multiple ShadowRealm handlers

We will add multiple ShadowRealm handlers, and they will all need to set
up certain global properties. Avoid repeating this code in each handler
as well as in idlharness-shadowrealm.js.

This should also increase readability, which is good since the ShadowRealm
setup code can be confusing.

--
Add 'shadowrealm-in-shadowrealm' global

This will add to any test with global=shadowrealm in its metadata, an
.any.shadowrealm-in-shadowrealm.html variant.

The test wrapper creates an outer ShadowRealm, which creates an inner
ShadowRealm and runs the tests inside that, relaying the results through
the outer ShadowRealm.

--
Add 'shadowrealm-in-dedicatedworker' global

This will add to any test with global=shadowrealm in its metadata, an
.any.shadowrealm-in-dedicatedworker.html variant.

The test loads an intermediate .any.worker-shadowrealm.js wrapper into a
Worker, and forwards the message port to the Worker's message port so that
fetch_tests_from_worker can receive the results.

--
Add 'shadowrealm-in-sharedworker' global

This will add to any test with global=shadowrealm in its metadata, an
.any.shadowrealm-in-sharedworker.html variant.

The test loads the same intermediate .any.worker-shadowrealm.js wrapper as
.any.shadowrealm-in-dedicatedworker.html, but populates a 'port' variable
with the port received from the connect event, instead of calling the
global postMessage since that won't work in a SharedWorker.

--
Add 'shadowrealm-in-serviceworker' global

This will add to any test with global=shadowrealm in its metadata, an
.any.shadowrealm-in-serviceworker.html variant.

We have to use a slightly different .any.serviceworker-shadowrealm.js
wrapper from the wrapper used for the other types of workers, because
dynamic import() is forbidden in ServiceWorker scopes. Instead, add a
utility function to set up a fakeDynamicImport() function inside the
ShadowRealm which uses the fetch adaptor to get the module's source text
and evaluate it in the shadowRealm.

Also add a case for ServiceWorkers to getPostMessageFunc(), which returns
a postMessage() drop-in replacement that broadcasts the message to all
clients, since test result messages from the ShadowRealm are not in
response to any particular message received by the ServiceWorker.

Note '.https.' needs to be added to the test path.

--
Add 'shadowrealm-in-audioworklet' global

This will add to any test with global=shadowrealm in its metadata, an
.any.shadowrealm-in-audioworklet.html variant.

The wrapper here is similar to the one for ServiceWorkers, since dynamic
import() is also forbidden in worklet scopes. But additionally fetch() is
not exposed, so we add a utility function to set up the ability to call
the window realm's fetch() through the AudioWorklet's message port.

We also add /resources/testharness-shadowrealm-audioworkletprocessor.js to
contain most of the AudioWorklet setup boilerplate, so that it isn't
written inline in serve.py.

Note '.https.' needs to be added to the test path.

--

wpt-commits: 9c8db8af89efbe0f67b215af2a6b49e9564e2971, 65a205aea5d02ff5bea7b1a0579287035d02d6c4, eb9c8e7259ef8bd5cca5019c1ca15ccd430e81dc, 3a20c56893472783b5e20c0d61cbb7b7b278cc6d, 7d8458ed291b139307430a102180c9a617d7876e, 42160ae827c863ac6787c8451fe377901c8f0652, 59367bb21d053abb9ed6de3cca5409486816acc9, 60d6c48e5fa76876bc3924b9d6185dfb56c9ab1c
wpt-pr: 49108
2024-11-20 09:15:02 +00:00
Guohui Deng
4cfe314e4b Bug 1931981 [wpt PR 49240] - Put timing values of DocumentTiming in a GCed object, a=testonly
Automatic update from web-platform-tests
Put timing values of DocumentTiming in a GCed object

So they can outlive the document, and PerformanceNavigationTiming can
collect them.

Bug: 40793421
Change-Id: I2cbb53862ff9fab08f963d9408ef65ff462e5dd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5935276
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Guohui Deng <guohuideng@microsoft.com>
Reviewed-by: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384608}

--

wpt-commits: d639d949a473d412a3557eab71eba43a58420f3f
wpt-pr: 49240
2024-11-20 09:15:02 +00:00
Camillia Smith Barnes
3b40443cd0 Bug 1931975 [wpt PR 49238] - Shared Storage: Fix web test .well-known file (_ to -), a=testonly
Automatic update from web-platform-tests
Shared Storage: Fix web test .well-known file (_ to -)

We fix a typo where an underscore should have been a hyphen.

Bug: 376278213
Change-Id: I8f2675e3e752817ca344abaee45b00371761365d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6033313
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Reviewed-by: Yao Xiao <yaoxia@chromium.org>
Commit-Queue: Cammie Smith Barnes <cammie@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384607}

--

wpt-commits: aa824139f77d4481c518eb5b877405a1a4f44a3b
wpt-pr: 49238
2024-11-20 09:15:01 +00:00
moz-wptsync-bot
b433cadd59 Bug 1931955 [wpt PR 49234] - Update wpt metadata, a=testonly
wpt-pr: 49234
wpt-type: metadata
2024-11-20 09:15:00 +00:00
Oriol Brufau
b57605dbb1 Bug 1931955 [wpt PR 49234] - Fix min/max-content block size of replaced element, a=testonly
Automatic update from web-platform-tests
Fix min/max-content block size of replaced element

The min-content and max-content sizes on the block axis depend on the
inline size. But when computing the SizeConstraint corresponding to the
inline axis, we were resolving the preferred inline size ignoring
intrinsic keywords. Now we will only ignore `auto`.

Also, this patch refactors the logic to compute the min-content and
max-content block sizes after fully resolving the inline size.
This avoids having to resolve the inline sizing properties twice.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: f1eaa58ed9d3e0a9d875387422878f3640c79f97
wpt-pr: 49234
2024-11-20 09:14:59 +00:00