blob: dfcfd80014cb13b813bf7b941f01de9147d5c2ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<script>
onload=function(){
var img = new Image();
img.src = "http://example.com/tests/dom/serviceworkers/test/fetch/upgrade-insecure/image-20px.png";
img.onload = function() {
window.parent.postMessage({status: "image", data: img.width}, "*");
};
img.onerror = function() {
window.parent.postMessage({status: "image", data: "error"}, "*");
};
};
</script>
|