Tue, 06 Jan 2015 21:39:09 +0100
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>