browser/base/content/test/general/offlineChild2.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html manifest="offlineChild2.cacheManifest">
     2 <head>
     3 <title></title>
     4 <script type="text/javascript">
     6 function finish(success) {
     7   window.parent.postMessage(success ? "success" : "failure", "*");
     8 }
    10 applicationCache.oncached = function() { finish(true); }
    11 applicationCache.onnoupdate = function() { finish(true); }
    12 applicationCache.onerror = function() { finish(false); }
    14 </script>
    15 </head>
    17 <body>
    18 <h1>Child</h1>
    19 </body>
    20 </html>

mercurial