Closed Bug 1911701 Opened 4 months ago Closed 4 months ago

[wpt-sync] Sync PR 47476 - [Selection API] Add composed range endpoints

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 47476 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/47476
Details from upstream follow.

Di Zhang <dizhangg@chromium.org> wrote:

[Selection API] Add composed range endpoints

We update Range API to support composed range. Previously, when setting
the start/end range endpoints, if they are in different node trees,
they will be collapsed. Now, if start/end are in different node trees,
but same document, composed_range_ will be set to track those cross
shadow tree endpoints.

We update Selection::GetComposedRanges to use composed start and end
to create a composed StaticRange.

We fix Selection::GetComposedRanges to use
IsShadowIncludingInclusiveAncestorOf for Rescoping and add a test.

Change-Id: Ib46497382fb83809394499182b5c8e4ee08925b7
Bug: 40286116
Fixed: 335245347
Fixed: 355630554
Reviewed-on: https://chromium-review.googlesource.com/5744732
WPT-Export-Revision: e277f22c32f417fa624e424f06fb3d639ddfa9aa

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 12 subtests

Status Summary

Firefox

OK : 3
PASS : 13
FAIL : 2

Chrome

OK : 3
PASS : 11
FAIL : 4

Safari

OK : 2
PASS : 10
FAIL : 4
TIMEOUT: 1
ERROR : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b174b86cad5 [wpt PR 47476] - [Selection API] Add composed range endpoints, a=testonly https://hg.mozilla.org/integration/autoland/rev/c87c681a11b9 [wpt PR 47476] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.