You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Clipboard] - Convert write DOMString to UTF8 for DOMArrayBuffer
This change fixes a crash in ClipboardWriter when handling DOM strings.
The issue occurred because we were treating a UTF-16 string as UTF-8
when creating a DOMArrayBuffer.
The fix instead uses utf8() method which internally checks for utf-16
string and converts it to utf-8 if required.
Please note that DOMString related WPTs introduced in CL 5759427
have been moved to a separate WPT. This was since the previous WPT which
contained this test has been marked as expected to fail, which was
causing it to not give any test failure signals for this API.
Bug: 415304299
Change-Id: I82af30777da6d48db89dd4e96c51d4704aac6105
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6524201
Reviewed-by: Sambamurthy Bandaru <sambamurthy.bandaru@microsoft.com>
Reviewed-by: Dan Clark <daniec@microsoft.com>
Commit-Queue: Rohan Raja <roraja@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1460379}
0 commit comments