Commit Graph

940932 Commits

Author SHA1 Message Date
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
moz-wptsync-bot
ff3520f23d Bug 1931968 [wpt PR 49236] - Update wpt metadata, a=testonly
wpt-pr: 49236
wpt-type: metadata
2024-11-20 09:14:59 +00:00
Di Zhang
e4e37992cd Bug 1931968 [wpt PR 49236] - [focus] Make mouse focus use flat tree parent, a=testonly
Automatic update from web-platform-tests
[focus] Make mouse focus use flat tree parent

This is an updated version of patch:
https://crrev.com/c/1514433

Currently, mouse-triggered event will traverse up parentOrShadowHost
to find fallback element to receive mouse focus. This doesn't make sense
for slotted content, where we expect the parent to receive focus to be
the assigned slot. This is fixed by traversing using the Flat Tree.

In the DOM spec for the Dispatch algorithm [1]:

"If isActivationEvent is true, event’s bubbles attribute is true,
activationTarget is null, and parent has activation behavior, then set
activationTarget to parent."

The parent is found using the get the parent algorithm [2]:
"A node’s get the parent algorithm, given an event, returns the node’s
assigned slot, if node is assigned; otherwise node’s parent."

Previously, this patch was reverted because it broke the text selection
in DevTools Network panel, which uses slots. This is fixed by
updating FrameSelection to use flat tree traversal to find parent.

The change is behind flag MouseFocusFlatTreeParent.

[1] https://dom.spec.whatwg.org/#concept-event-dispatch
[2] https://dom.spec.whatwg.org/#get-the-parent

Change-Id: Ibfeaebab0dce4817c34b447f540e784b12b9ab56
Bug: 41420461
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6004068
Auto-Submit: Di Zhang <dizhangg@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384575}

--

wpt-commits: 8c7d2bc8f83d8a38e51178ce132f3eed17275b8b
wpt-pr: 49236
2024-11-20 09:14:58 +00:00
Noam Rosenthal
d5155e8e84 Bug 1931969 [wpt PR 49237] - Deflake and speed up LoAF tests, a=testonly
Automatic update from web-platform-tests
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}

--

wpt-commits: 2b26674334f57a229efb3dc31c5d147fa3c27784
wpt-pr: 49237
2024-11-20 09:14:57 +00:00
moz-wptsync-bot
3c2fa81212 Bug 1931937 [wpt PR 49232] - Update wpt metadata, a=testonly
wpt-pr: 49232
wpt-type: metadata
2024-11-20 09:14:56 +00:00
Mason Freed
294ef359da Bug 1931937 [wpt PR 49232] - Implement new behavior for popovers contained within invokers, a=testonly
Automatic update from web-platform-tests
Implement new behavior for popovers contained within invokers

In this case:

```
<button popovertarget=foo>Activate
  <div popover id=foo>Clicking me shouldn't close me</div>
</button>
```

clicking the button properly activates the popover, however,
clicking on the popover itself after that should **not** close
the popover. It currently does because the popover click
bubbles to the `<button>` and activates the invoker, which
toggles the popover closed.

This CL changes that behavior so that clicks on the popover
in the case above no longer re-invoke the popover.

Spec PR:
  https://github.com/whatwg/html/pull/10770

Bug: 379241451
Change-Id: Iab67127c46a97a081a7818bfd917864729bf8b5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026982
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384498}

--

wpt-commits: 50f7c0548260cdc2f11bface1816a283f9314de8
wpt-pr: 49232
2024-11-20 09:14:55 +00:00
moz-wptsync-bot
6d1d700885 Bug 1927948 [wpt PR 48870] - Update wpt metadata, a=testonly
wpt-pr: 48870
wpt-type: metadata
2024-11-20 09:14:55 +00:00
Eugene Zemtsov
afd83a3eca Bug 1927948 [wpt PR 48870] - Move 'valid codec with spaces' to validButUnsupportedConfigs configs, a=testonly
Automatic update from web-platform-tests
Move 'valid codec with spaces' to validButUnsupportedConfigs configs (#48870)

* Move 'valid codec with spaces' to validButUnsupported configs

UA is not expected to support codec strings with whitespaces around it, even though it's a valid config.

* Remove trailing whitespaces at line 100
--

wpt-commits: 30ee69b644196db4964bc2597d6aad7d37e3beed
wpt-pr: 48870
2024-11-20 09:14:54 +00:00
moz-wptsync-bot
e3ef3f46ce Bug 1931923 [wpt PR 49231] - Update wpt metadata, a=testonly
wpt-pr: 49231
wpt-type: metadata
2024-11-20 09:14:53 +00:00
Di Zhang
d05a94261b Bug 1931923 [wpt PR 49231] - [Selection API] Add DOM mutation removal test, a=testonly
Automatic update from web-platform-tests
[Selection API] Add DOM mutation removal test

Add nested shadow host case.

Change-Id: Iebf8f6dfc52b7c5274b29946b6389f7ad717759f
Bug: 40286116
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026955
Auto-Submit: Di Zhang <dizhangg@chromium.org>
Reviewed-by: Siye Liu <siliu@microsoft.com>
Commit-Queue: Siye Liu <siliu@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1384420}

--

wpt-commits: bfd44a5a07a419124c9a9bbdb095510b6ecdb509
wpt-pr: 49231
2024-11-20 09:14:52 +00:00
Dominic Farolino
00f5d7764a Bug 1931932 [wpt PR 49230] - DOM: Capture apparent getSelection() getter side effects, a=testonly
Automatic update from web-platform-tests
DOM: Capture apparent getSelection() getter side effects

This CL adds tests (and unfortunately, expectations) for a bug that has
to do with getters on `getSelection()` having side effects on the
internal range maintained by `blink::DOMSelection`, when a selection's
anchor node is removed from the DOM.

R=masonf

Bug: 379275917
Change-Id: Ic69f910b5d070a55a6f0c3992f45c0ad939124d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026810
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384416}

--

wpt-commits: e60ae5825b9f69af2581e0ae8955f2dbe5e0ebd1
wpt-pr: 49230
2024-11-20 09:14:52 +00:00
Kevin Ellis
e2ed0b2a4e Bug 1931912 [wpt PR 49228] - Refactor pointerevent_poitnerId_scope test, a=testonly
Automatic update from web-platform-tests
Refactor pointerevent_poitnerId_scope test

This test was periodically flaking on debug builds.  A timeout would
resolve if we did not see the expected number of events. This is
possible due to event coalescing. Added a click on each of the targets
to ensure that we get the expected number of events.

Also removed the manual testing instructions and converted the test to
be promise driven.

Bug: 352327319
Change-Id: I3aefac84b6be0ca76a9678e03eef3c89d0e18092
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6020360
Reviewed-by: Mustaq Ahmed <mustaq@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384414}

--

wpt-commits: a113ac4fa26c11b773c3f3cafe95f95370908f41
wpt-pr: 49228
2024-11-20 09:14:51 +00:00
moz-wptsync-bot
d5d46a30e7 Bug 1931882 [wpt PR 49226] - Update wpt metadata, a=testonly
wpt-pr: 49226
wpt-type: metadata
2024-11-20 09:14:50 +00:00
Steinar H. Gunderson
71c2abdc74 Bug 1931882 [wpt PR 49226] - [css-values-5] Implement sibling-index() / sibling-count()., a=testonly
Automatic update from web-platform-tests
[css-values-5] Implement sibling-index() / sibling-count().

This is behind a flag for now, not the least because having such
element-dependent functions available will crash some properties'
parsers, which expect to be able to evaluate calc() expressions
at parse time (for e.g. clamping).

Bug: 40282719
Change-Id: I38d88da8d0492d8725089e4bb3f71944c564a7ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5097285
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Steinar H Gunderson <sesse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384353}

--

wpt-commits: 2bc436578a38a71ad123b53c4fca4965eee916fc
wpt-pr: 49226
2024-11-20 09:14:50 +00:00
Noam Rosenthal
e0356e8147 Bug 1931895 [wpt PR 49227] - Add WebDX for long animation frames & page visibility state, a=testonly
Automatic update from web-platform-tests
Add WebDX for long animation frames & page visibility state

Using existing UseCounters.

Change-Id: I0649ef64e6e812e97c42346e183b0bdcccdc8b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6031049
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Reviewed-by: Annie Sullivan <sullivan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384341}

--

wpt-commits: 1012b6102284735222165dc1e38f9f437fdc7c3e
wpt-pr: 49227
2024-11-20 09:14:49 +00:00
moz-wptsync-bot
82d6bdbb12 Bug 1931875 [wpt PR 49223] - Update wpt metadata, a=testonly
wpt-pr: 49223
wpt-type: metadata
2024-11-20 09:14:48 +00:00
Mason Freed
8073aa6856 Bug 1931875 [wpt PR 49223] - Fix dialog.requestClose() in two ways, a=testonly
Automatic update from web-platform-tests
Fix dialog.requestClose() in two ways

1. The prior implementation ignored the argument to requestClose.
   With this CL, requestClose(string) stores away string and then
   returns it from the CloseWatcher close event.
2. If the dialog's closedBy state is None (either explicitly or
   through the "Auto" state), requestClose throws an exception.

I also added a more significant set of tests for requestClose() in
all states.

This goes along with recent discussion about throwing exceptions if
requestClose() is called when the dialog isn't in the right state,
relative to closedBy:

  https://github.com/whatwg/html/issues/10164#issuecomment-2479792309

The spec PR has been updated accordingly:

  https://github.com/whatwg/html/pull/10737

Bug: 376516550
Change-Id: I023845844e6afb4da9a71637d517ac78d2861329
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026242
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384345}

--

wpt-commits: 6f4f09f92913154e70e9214636ee0e60c65f5d05
wpt-pr: 49223
2024-11-20 09:14:47 +00:00
moz-wptsync-bot
7a8c45fb6c Bug 1931879 [wpt PR 49225] - Update wpt metadata, a=testonly
wpt-pr: 49225
wpt-type: metadata
2024-11-20 09:14:47 +00:00
Mason Freed
4ab765d06d Bug 1931879 [wpt PR 49225] - Remove .tentative from popover invoker WPTs, a=testonly
Automatic update from web-platform-tests
Remove .tentative from popover invoker WPTs

The spec PR landed:

  https://github.com/whatwg/html/pull/10728

so this removes .tentative from the WPTs.

Bug: 364669918
Change-Id: I35e50fff8d94ff52e212844814a4e597c35d78b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6025803
Commit-Queue: Di Zhang <dizhangg@chromium.org>
Reviewed-by: Di Zhang <dizhangg@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384325}

--

wpt-commits: 6572d5b33f7e95cb1f857ed76d2cdd7939ef47ad
wpt-pr: 49225
2024-11-20 09:14:46 +00:00
Julian Descottes
fa1e9ef710 Bug 1932162 - Expose fetch destination on nsILoadInfo r=necko-reviewers,valentin
Depends on D229378

Expose a getter on nsILoadInfo to easily retrieve the fetch destination as a string
This avoids duplicating the mapping logic in JS for webdriver bidi

Differential Revision: https://phabricator.services.mozilla.com/D229384
2024-11-20 09:07:37 +00:00
Julian Descottes
d5379133cb Bug 1932162 - Set the initiatorType in HttpChannelParent and expose to scripts r=necko-reviewers,valentin
This changeset synchronizes the initiatorType from the child channel to the parent channel in asyncOpen.
It also removes noscript from initiatorType in nsITimedChannel

Differential Revision: https://phabricator.services.mozilla.com/D229378
2024-11-20 09:07:36 +00:00
Mugurell
6979182bd9 Bug 1927882 - part 3 - Don't theme the system bars while in custom tabs if navbar is enabled r=android-reviewers,tchoh,harrisono
Needed to also add the default toolbar color as the default OS navigation bar color
to ensure that we have a proper default if system bars' backgrounds are not updated.

Differential Revision: https://phabricator.services.mozilla.com/D229495
2024-11-20 08:37:26 +00:00
Mugurell
f4caf42c5f Bug 1927882 - part 2 - Don't use external theming for the addressbar in custom tabs if navbar is enabled r=android-reviewers,skhan,harrisono
Differential Revision: https://phabricator.services.mozilla.com/D228339
2024-11-20 08:37:26 +00:00
Mugurell
2063326dc9 Bug 1927882 - part 1 - Remove external theming support for the navbar in custom tabs r=android-reviewers,skhan,harrisono
Differential Revision: https://phabricator.services.mozilla.com/D228338
2024-11-20 08:37:25 +00:00