test-trusted-document.html 545 B

1234567891011121314151617181920
  1. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  2. - License, v. 2.0. If a copy of the MPL was not distributed with this
  3. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  4. <html>
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Worker test</title>
  8. </head>
  9. <body>
  10. <p id="paragraph">Lorem ipsum dolor sit amet.</p>
  11. <script>
  12. if ("addon" in window) {
  13. addon.port.on('addon-to-document', function (arg) {
  14. addon.port.emit('document-to-addon', arg);
  15. });
  16. }
  17. </script>
  18. </body>
  19. </html>