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

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

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>

mercurial