Bug 250650

Summary: Value sanitization for input[type=text] should not truncate a value at control character
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: akeerthi, cdumez, karlcow, rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase none

Description Ahmad Saleem 2023-01-15 09:14:42 PST
Hi Team,

While going through Blink's commit, I came across another failing test case:

Test Case - https://jsfiddle.net/ba6vpwm5/show

^ Fails in Safari 16.2 & STP161. Passes all three in Chrome Canary 111 and Firefox Nightly 110.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/10a06916d0f8859adf1096990526d81e201cc6d5

It might be some textarea not getting focus issue rather than we failing it completely but still want to raise it for discussion and input.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-01-22 09:15:18 PST
<rdar://problem/104529641>
Comment 2 Ahmad Saleem 2023-02-28 13:29:46 PST
Just checked and we don't have code removed from Blink's commit - https://searchfox.org/wubkat/source/Source/WebCore/html/TextFieldInputType.cpp#510

But for some reason this test is failing in WebKit ToT as well.

Could be HTML Editing or Focus issue rather than Form issue?
Comment 3 Ahmad Saleem 2023-05-11 04:24:00 PDT
Created attachment 466315 [details]
Testcase
Comment 4 Ahmad Saleem 2023-05-11 04:25:11 PDT
It passes locally and this is focus issue in iframe, which is bug 253409.

*** This bug has been marked as a duplicate of bug 253409 ***