summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/fetch/imagecache/postmortem.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/serviceworkers/test/fetch/imagecache/postmortem.html')
-rw-r--r--dom/serviceworkers/test/fetch/imagecache/postmortem.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/serviceworkers/test/fetch/imagecache/postmortem.html b/dom/serviceworkers/test/fetch/imagecache/postmortem.html
new file mode 100644
index 0000000000..53356cd02c
--- /dev/null
+++ b/dom/serviceworkers/test/fetch/imagecache/postmortem.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<script>
+onload = function() {
+ var width = document.querySelector("img").width;
+ window.parent.postMessage({status: "postmortem",
+ width}, "*");
+};
+</script>
+<img src="image-20px.png">