tor-browser

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

webchannel.html (773B)


      1 <!DOCTYPE html>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 <html>
      6  <head>
      7    <meta charset="utf-8"/>
      8    <title></title>
      9  </head>
     10  <body>
     11    This content page will send a WebChannel message to enable the profiler menu button.
     12    <script>
     13      "use strict";
     14      document.title = "WebChannel Page Ready";
     15 
     16      window.dispatchEvent(
     17        new CustomEvent('WebChannelMessageToChrome', {
     18          detail: JSON.stringify({
     19            id: 'profiler.firefox.com',
     20            message: { type: "ENABLE_MENU_BUTTON", requestId: 0 },
     21          }),
     22        })
     23      );
     24    </script>
     25  </body>
     26 </html>