Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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>
5 <script type="text/javascript">
7 applicationCache.onerror = function() {
8 parent.frameOnUpdate("diff", false);
9 }
11 applicationCache.oncached = function() {
12 parent.frameOnUpdate("diff", true, applicationCache.status);
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.
18 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
20 var Ci = Components.interfaces;
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 }
31 </script>
33 </head>
34 <body onload="parent.frameOnLoad('diff', applicationCache.status);">
35 This is an iframe with a different manifest reference
36 </body>
37 </html>