Index: chrome/content/tests/policy.js |
=================================================================== |
--- a/chrome/content/tests/policy.js |
+++ b/chrome/content/tests/policy.js |
@@ -95,6 +95,11 @@ |
"http://127.0.0.1:1234/test.gif", "image", false, false |
], |
[ |
+ "HTML image with srcset", |
+ '<img srcset="test.gif">', |
+ "http://127.0.0.1:1234/test.gif", "image", false, false |
+ ], |
+ [ |
"Dynamically inserted image button", |
'<div id="insert"></div>' + |
'<script>' + |
@@ -285,6 +290,15 @@ |
]); |
} |
+ if ("fetch" in window) |
+ { |
+ tests.push([ |
+ "fetch() API", |
+ '<script>fetch("test.xml").catch(function() {});</script>', |
Wladimir Palant
2015/12/29 23:25:40
That's an async call, I don't think it is guarante
Sebastian Noack
2015/12/30 15:46:20
Acknowledged. There you go: https://codereview.adb
|
+ "http://127.0.0.1:1234/test.xml", "xmlhttprequest", false, false |
+ ]); |
+ } |
+ |
let policyHits = []; |
function onPolicyHit(item, scanComplete) |
{ |