Skip to content

Commit

Permalink
Bug 1556384 [wpt PR 17135] - [Trusted Types] Handle Trusted Types in …
Browse files Browse the repository at this point in the history
…xlink:href for SVG elements., a=testonly

Automatic update from web-platform-tests
[Trusted Types] Handle Trusted Types in xlink:href for SVG elements.

Bug: 933300
Change-Id: I58e72faa9f5cdbd0390c84842cc5d5641d0b7d21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1634880
Reviewed-by: Fredrik Söderquist <fsopera.com>
Commit-Queue: Daniel Vogelheim <vogelheimchromium.org>
Cr-Commit-Position: refs/heads/master{#670100}

--

wpt-commits: f64ccd6f3956e0d593393a4868838c9489928882
wpt-pr: 17135

UltraBlame original commit: 09758773f63a6abe71d096aa73966b76aef88471
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent 65adc6a commit 7e0dd37
Show file tree
Hide file tree
Showing 2 changed files with 1,166 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,148 @@
"
)
;
test
(
t
=
>
{
let
p
=
createURL_policy
(
window
'
5
'
)
;
let
url
=
p
.
createURL
(
INPUTS
.
URL
)
;
let
elem
=
document
.
createElementNS
(
"
http
:
/
/
www
.
w3
.
org
/
2000
/
svg
"
"
image
"
)
;
elem
.
setAttributeNS
(
"
http
:
/
/
www
.
w3
.
org
/
1999
/
xlink
"
"
href
"
url
)
;
let
attr_node
=
elem
.
getAttributeNodeNS
(
"
http
:
/
/
www
.
w3
.
org
/
1999
/
xlink
"
"
href
"
)
;
assert_equals
(
attr_node
.
value
+
"
"
RESULTS
.
URL
)
;
}
"
Element
.
setAttributeNS
accepts
a
URL
on
<
svg
:
image
xlink
:
href
/
>
"
)
;
<
/
script
Expand Down
Loading

0 comments on commit 7e0dd37

Please sign in to comment.