tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

requestPermission-denied-manual.https.html (773B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Notification.requestPermission (permission=denied)</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com/">
      5 <link rel="author" title="Xin Liu" href="mailto:xinx.liu@intel.com">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script>
      9 setup({ explicit_timeout: true })
     10 Notification.requestPermission()
     11 if (Notification.permission != "denied") {
     12    alert("TEST NOT RUN. Change your browser settings so that notifications"
     13        + " for this origin are blocked, and then reload this page.")
     14 } else {
     15    async_test(function (t) {
     16        t.step(function () {
     17            Notification.requestPermission()
     18            t.done()
     19        })
     20    })
     21 }
     22 </script>