Closed Bug 2094992 Opened 14 days ago Closed 12 days ago

[wpt-sync] Sync PR 65046 - Don't serialize start of next row when selection ends at table row end

Categories

(Core :: DOM: Editor, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Max Ihlenfeldt <max@igalia.com> wrote:

Don't serialize start of next row when selection ends at table row end

When a selection ends at the end of a table row and another row follows,
the serialized HTML also contains the next row with an empty cell. Fix
this by not serializing table parts where nothing rendered in it comes
before the selection end, i.e. nothing in it is selected.

Bug: 583144621
Change-Id: I6bcfbefc793849e7a86e5a22cafbe282ef0db455
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8776307
Auto-Submit: Max Ihlenfeldt \<max@igalia.com>
Reviewed-by: Dan Clark \<daniec@microsoft.com>
Commit-Queue: Dan Clark \<daniec@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1741906}

Component: web-platform-tests → DOM: Editor
Product: Testing → Core

CI Results

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

Total 2 tests and 2 subtests

Status Summary

Firefox

OK : 2
PASS: 4

Chrome

OK : 2
PASS: 2
FAIL: 2

Safari

OK : 2
PASS: 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ed3d6a918927 https://hg.mozilla.org/integration/autoland/rev/9139c9fed511 [wpt PR 65046] - Don't serialize start of next row when selection ends at table row end, a=testonly
Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.