Closed Bug 1948325 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 50715 - [Editing] Include open shadow roots in RangeLength for MoveParagraphs.

Categories

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

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Shweta Bindal <shwetabindal@microsoft.com> wrote:

[Editing] Include open shadow roots in RangeLength for MoveParagraphs.

When we toggle off list, it executes |MoveParagraphs| function. In that
while calculating |EphemeralRange| and |destination_index|, the iterator
does not go in shadow root. To change this |TextIteratorBehavior| should
be |enters_open_shadow_roots| true. This was done by using
|SetEntersOpenShadowRoots| function.

The |shadow_depth_| check was removed from the while condition, as it
was causing the loop to iterate over all nodes within the shadow root.
This behavior resulted in a failure of the |Dcheck| when the node
exceeded the |past_end| boundary.

Low-Coverage-Reason: HARD_TO_TEST
Bug: 40771555
Change-Id: Iec5924f478df68379cfbdaad60a5a76658a00f2a

Reviewed-on: https://chromium-review.googlesource.com/6197017
WPT-Export-Revision: 62ad4dfcc92e8f9dc1f81d8c14eebaf252a9b899

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 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8d162cec2fe1 [wpt PR 50715] - [Editing] Include open shadow roots in RangeLength for MoveParagraphs., a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.