Closed Bug 1914825 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 47781 - Input event data should not be null when dropped data has interchange newline at the end or start

Categories

(Core :: DOM: Events, 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 47781 into mozilla-central (this bug is closed when the sync is complete).

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

Utkarsh Pathak <utpathak@microsoft.com> wrote:

Input event data should not be null when dropped data has interchange newline at the end or start

As per spec
https://www.w3.org/TR/input-events-1/#overview, event data for input
events with certain inputType should be set with the data under
operation. Currently we save this data in the |PerformTrivialReplace|
method but if the dropped data has an interchange newline at the start
or end, then the method returns early and this data is not saved. This
change will set the data just after checking if we are dealing with text
node.

Bug: 40737336
Change-Id: Ib52fe4f7e8d8bfa00130894cbea904fe150bcf8b
Reviewed-on: https://chromium-review.googlesource.com/5782430
WPT-Export-Revision: 085da22d63e2d173e2951ef40f3ba90f6bf27382

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

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
FAIL: 2

Safari

OK : 2
FAIL: 2

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/b39efa59c702 [wpt PR 47781] - Input event data should not be null when dropped data has interchange newline at the end or start, a=testonly https://hg.mozilla.org/integration/autoland/rev/96a56b697d99 [wpt PR 47781] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.