CSP blocks the use of <animate> tag in inline svg.
Categories
(Core :: DOM: Security, defect, P3)
Tracking
()
People
(Reporter: mailenm, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: parity-chrome, Whiteboard: [domsecurity-backlog2])
Attachments
(1 file)
(deleted),
text/html
|
Details |
Updated•7 years ago
|
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Adding standalone testcase that triggers the error and shows that some attributes may animate, while others don't.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Apparently this is intentional. See discussions in bug 763879.
Updated•4 years ago
|
Comment 5•4 years ago
|
||
It's not matching Chromium's behaviour and I see no logical reason why a fill
animation should be blocked and a height
animation is fine. This has nothing to do with security, it's just weird behaviour.
Comment 7•2 years ago
|
||
Note also (from the dupe) that <animateTransform>
is not blocked.
Another person emailed the security alias and complained about the performance impact of all the CSP errors that were generated. It wasn't too terrible on my machine, but also my test was only reporting errors to the console and not trying to post them somewhere over HTTP
Comment 8•2 years ago
|
||
Like the reporter of this bug they would prefer we not block, but also raised the suggestion that if we insist on blocking (see original bug 763879 discussion) we kill that <animate> so there's only one violation.
While I can understand the security aspect (except for the inconsistencies in what is or is not allowed). I don't see any proposed way to do SVG animations with the restriction in place. If there was some way to load these SVGs with a hash/nonce in the CSP to allow them to work, then I'd be fine with it.
But, presently, this just makes it impossible to load an SVG with a secure CSP, unless you limit it to an arbitrary subset of features which Firefox allows, but is not documented anywhere.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 10•2 years ago
|
||
Clearing backlog tag temporarily so we can consider this with bug 1806276
Updated•1 year ago
|
Description
•