dom/tests/mochitest/ajax/offline/460353_iframe_ownmanifest.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:2c796e94b66d
1 <html xmlns="http://www.w3.org/1999/xhtml" manifest="updatingManifest.sjs">
2 <head>
3 <title>Bug 460353, iframe with a different manifest reference</title>
4
5 <script type="text/javascript">
6
7 applicationCache.onerror = function() {
8 parent.frameOnUpdate("diff", false);
9 }
10
11 applicationCache.oncached = function() {
12 parent.frameOnUpdate("diff", true, applicationCache.status);
13
14 /* This code tries to figure out what cache is really
15 associated to this document, but hangs on getter2.getInterface
16 from for now unknown reasons. Commenting this out.
17
18 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
19
20 var Ci = Components.interfaces;
21
22 var getter1 = window.QueryInterface(Ci.nsIInterfaceRequestor);
23 var webnav = getter1.getInterface(Ci.nsIWebNavigation);
24 var getter2 = webnav.QueryInterface(Ci.nsIInterfaceRequestor);
25 var cacheCont = getter2.getInterface(Ci.nsIApplicationCacheContainer);
26 var cache = cacheCont.applicationCache;
27 dump(cache.groupID);
28 */
29 }
30
31 </script>
32
33 </head>
34 <body onload="parent.frameOnLoad('diff', applicationCache.status);">
35 This is an iframe with a different manifest reference
36 </body>
37 </html>

mercurial