If I submit a form with a textarea containing "A0d0aB" it sends "A0d0a0d0aB". If I submit a form with a textarea containing "A0d0a0d0aB" it sends "A0d0a0d0a0d0a0d0aB". (each CR-LF pair gets duplicated) It works fine from Chrome and the old Safari, but not the new one. I couldn't find how to get the specific version of the WebKit. OK: from Safari (Version 14.0.2 (15610.3.7.1.10 15610), detected by httpd as: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15" DUPLICATED: from Safari (Version 16.1 (17614.2.9.1.13, 17614), detected by httpd as: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15" It seems to be related to: https://bugs.webkit.org/show_bug.cgi?id=249916 It seemed to happened at around the time of this change: https://trac.webkit.org/changeset/293672/webkit/
Also OK from Chrome, detected by httpd as: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
And as I expected, as soon as I upgraded iPadOS to 16.2 my Chrome is detected as AppleWEbKit/605.1.15 now and all the CR-LF pairs get duplicated!
I have just reproduced the bug with the latest version for Monterey: 258350@main DECEMBER 29, 2022 AT 03:43 AM GMT+1 downloaded from here: https://s3-us-west-2.amazonaws.com/minified-archives.webkit.org/mac-monterey-x86_64%20arm64-release/258350@main.zip
It only happens if a textarea has [wrap="hard"] attributes! If the attribute is removed, there are no more duplications.
<rdar://problem/103870498>
Created attachment 464336 [details] test case
I did bisecting with my WinCairo collection. r281133 good r281553 bad
240773@main (bug#228882) seems to be suspicious.
(In reply to Fujii Hironori from comment #8) > 240773@main (bug#228882) seems to be suspicious. yeah that's a strong candidate.
Created attachment 464463 [details] Patch
Created attachment 464464 [details] Patch
Committed 258830@main (4dde2b983f43): <https://commits.webkit.org/258830@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 464464 [details].