Commit 5e9fedd
Check if url functions are supported in attr() security tests
Blink, as well as Gecko and Webkit do not support src() function [0]
and image() function [1]. Hypothetical string() function is not
supported as well. This causes some of the attr() security tests to
incorrectly fail. If function is not supported this should not be a
violation to the security, so we can just skip these tests.
This Cl also restructures test a bit, use consts instead of long urls.
[0] https://drafts.csswg.org/css-values-4/#urls
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/image/image
Fixed: 489670248
Change-Id: I7fe76e02135d983c4f2f801d63a28eee7cb992d21 parent 4267ed5 commit 5e9fedd
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
0 commit comments