Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
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 <script>
4 "use strict";
6 function showNotification() {
7 var options = {
8 dir: undefined,
9 lang: undefined,
10 body: "Test body",
11 tag: "Test tag",
12 icon: undefined,
13 };
14 return new Notification("Test title", options);
15 }
16 </script>
17 </head>
18 <body>
19 <form id="notificationForm" onsubmit="showNotification();">
20 <input type="submit" value="Show notification" id="submit"/>
21 </form>
22 </body>
23 </html>