CSS text-transform should not affect plain text copy#60830
CSS text-transform should not affect plain text copy#60830vitorroriz wants to merge 1 commit intoWebKit:mainfrom
Conversation
|
EWS run on previous version of this PR (hash 4a47e30) Details
|
4a47e30 to
0c1c160
Compare
|
EWS run on previous version of this PR (hash 0c1c160) Details
|
0c1c160 to
eacf15d
Compare
|
EWS run on previous version of this PR (hash eacf15d) Details
|
https://bugs.webkit.org/show_bug.cgi?id=43202 rdar://27247825 Reviewed by NOBODY (OOPS!). When copying text to the clipboard, use the original DOM text instead of the transformed text so that CSS text-transform does not leak into the pasted result. This is guarded by the CopyPlainTextWithoutTextTransformEnabled setting and avoids text-security content to prevent leaking secured text. * LayoutTests/imported/w3c/web-platform-tests/editing/other/paste_text_with_text_transform-expected.txt: * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WebCore/editing/TextIterator.cpp: (WebCore::TextIterator::emitText):
eacf15d to
ef56b4b
Compare
|
EWS run on current version of this PR (hash ef56b4b) Details |
|
It's unclear to me that we want to do this. End-user doesn't care if text was transformed or not. They want to copy the text they see on screen. |
|
I'm an end user and I do care: |
|
FWIW, the current behavior is intentional per https://bugs.webkit.org/show_bug.cgi?id=3429. |
|
I'm an end user and I do care: https://adrianroselli.com/2012/06/copying-content-styled-with-text.html |
aproskuryakov
left a comment
There was a problem hiding this comment.
Why are we doing this? This is purely user hostile, and I don't think that spec compliance is a good enough reason to make user hostile changes.
Can you substantiate this claim? |
Mozilla had a bug filed about this behavior: https://bugzilla.mozilla.org/show_bug.cgi?id=35148 |
🛠 mac-apple
ef56b4b
ef56b4b