[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)
Tracking
()
| 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
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
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
- /input-events/textarea-insertfrompaste-type-inputevent-data-withnewline-atend.html [wpt.fyi]
- Input event data for inputType insertFromPaste should be set:
FAIL(Chrome:FAIL, Safari:FAIL)
- Input event data for inputType insertFromPaste should be set:
- /input-events/textarea-insertfrompaste-type-inputevent-data-withnewline-atstart.html [wpt.fyi]
- Input event data for inputType insertFromPaste should be set:
FAIL(Chrome:FAIL, Safari:FAIL)
- Input event data for inputType insertFromPaste should be set:
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b39efa59c702
https://hg.mozilla.org/mozilla-central/rev/96a56b697d99
Description
•