Bug 250650 - Value sanitization for input[type=text] should not truncate a value at control character
Summary: Value sanitization for input[type=text] should not truncate a value at contro...
Status: RESOLVED DUPLICATE of bug 253409
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-01-15 09:14 PST by Ahmad Saleem
Modified: 2023-05-11 04:25 PDT (History)
6 users (show)

See Also:


Attachments
Testcase (2.55 KB, text/html)
2023-05-11 04:24 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***