dom/tests/mochitest/notification/test_bug931307.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 <!--
     2   Any copyright is dedicated to the Public Domain.
     3   http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <html>
     6 <head>
     7   <title>Bug 931307</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    10 </head>
    11 <body>
    12 <pre id="test">
    13 <script type="application/javascript"><!--
    15 SimpleTest.waitForExplicitFinish();
    16 new Notification("");
    17 var promise = Notification.get();
    18 promise.then(
    19   function onSuccess() {
    20     ok(true, "No crash!");
    21     SimpleTest.finish();
    22   },
    23   function onFailure() {
    24     ok(false, "Should not get an error in promise callback");
    25   }
    26 );
    28 </script>
    29 </pre>
    30 </body>
    31 </html>

mercurial