Commit a77960a
Fix conversion from String to Blob in ClipboardItem.getType()
String::Span8() does not return UTF-8 encoded data, but rather Latin-1
if the string has an 8-bit backing. If the string has a 16-bit backing
it returns jibberish.
Fixed: 457303645
Change-Id: Ibce8f4817b6e8571baf041867065da7eb13a9b23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7110225
Auto-Submit: Fredrik Söderquist <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Commit-Queue: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1539397}1 parent afaf0ac commit a77960a
File tree
1 file changed
+15
-0
lines changed- clipboard-apis
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
98 | 113 | | |
99 | 114 | | |
100 | 115 | | |
| |||
0 commit comments