dom/tests/mochitest/ajax/offline/test_missingManifest.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <html>
     2 <head>
     3 <title>Test missing manifest</title>
     5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     8 <script type="text/javascript">
    10 var gTestWin;
    12 SimpleTest.waitForExplicitFinish();
    14 SpecialPowers.pushPermissions([{'type': 'offline-app', 'allow': true, 'context': document}], startTest);
    16 function startTest() {
    17   // now this will properly load the manifest.
    18   gTestWin = window.open("missing.html");
    19 }
    21 function finish() {
    22   gTestWin.close();
    23   SimpleTest.finish();
    24 }
    26 </script>
    28 </head>
    30 <body>
    32 </body>
    33 </html>

mercurial