1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/ajax/offline/460353_iframe_ownmanifest.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" manifest="updatingManifest.sjs"> 1.5 +<head> 1.6 +<title>Bug 460353, iframe with a different manifest reference</title> 1.7 + 1.8 +<script type="text/javascript"> 1.9 + 1.10 +applicationCache.onerror = function() { 1.11 + parent.frameOnUpdate("diff", false); 1.12 +} 1.13 + 1.14 +applicationCache.oncached = function() { 1.15 + parent.frameOnUpdate("diff", true, applicationCache.status); 1.16 + 1.17 + /* This code tries to figure out what cache is really 1.18 + associated to this document, but hangs on getter2.getInterface 1.19 + from for now unknown reasons. Commenting this out. 1.20 + 1.21 + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 1.22 + 1.23 + var Ci = Components.interfaces; 1.24 + 1.25 + var getter1 = window.QueryInterface(Ci.nsIInterfaceRequestor); 1.26 + var webnav = getter1.getInterface(Ci.nsIWebNavigation); 1.27 + var getter2 = webnav.QueryInterface(Ci.nsIInterfaceRequestor); 1.28 + var cacheCont = getter2.getInterface(Ci.nsIApplicationCacheContainer); 1.29 + var cache = cacheCont.applicationCache; 1.30 + dump(cache.groupID); 1.31 + */ 1.32 +} 1.33 + 1.34 +</script> 1.35 + 1.36 +</head> 1.37 +<body onload="parent.frameOnLoad('diff', applicationCache.status);"> 1.38 + This is an iframe with a different manifest reference 1.39 +</body> 1.40 +</html>