summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html')
-rw-r--r--dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html b/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html
new file mode 100644
index 0000000000..de357827b6
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html
@@ -0,0 +1,25 @@
+<html xmlns="http://www.w3.org/1999/xhtml" manifest="simpleManifest.cacheManifest">
+<head>
+<title>Bug 460353, iframe with a different manifest reference</title>
+
+<script type="text/javascript">
+
+applicationCache.onerror = function() {
+ parent.frameOnUpdate("same", false);
+}
+
+applicationCache.oncached = function() {
+ parent.frameOnUpdate("same", true, applicationCache.status);
+}
+
+applicationCache.onnoupdate = function() {
+ parent.frameOnUpdate("same", true, applicationCache.status);
+}
+
+</script>
+
+</head>
+<body onload="parent.frameOnLoad('same', applicationCache.status);">
+ This is an iframe with the same manifest reference
+</body>
+</html>