Skip to content

Commit

Permalink
[Async Clipboard] Write well-formed SVG images.
Browse files Browse the repository at this point in the history
Instead of using the strict HTML markup processor that inlines the
styles and strips out security-sensitive tags very aggressively,
use the DOMParser to parse the SVG document instead.
It uses the XML parser that preserves the `<style>` and other
SVG custom tags.

Bug: 40776225

Change-Id: I19923ae699c884ffc002a5edc27cb19779c31681
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5277574
Reviewed-by: Evan Stade <[email protected]>
Commit-Queue: Anupam Snigdha <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1264340}
  • Loading branch information
snianu authored and chromium-wpt-export-bot committed Feb 23, 2024
1 parent 962b096 commit af4ba09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 121 deletions.
61 changes: 0 additions & 61 deletions clipboard-apis/async-svg-script-removal.https.html

This file was deleted.

60 changes: 0 additions & 60 deletions clipboard-apis/async-write-svg-read-svg.https.html

This file was deleted.

0 comments on commit af4ba09

Please sign in to comment.