asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
659 stars 182 forks source link

Suppress "insecure origin" warning if script is loaded from a Firefox WebExtension #127

Closed jfietkau closed 7 years ago

jfietkau commented 7 years ago

In the same vein as "chrome-extension:", the "moz-extension:" protocol is used by Mozilla Firefox to access files within locally installed browser extensions. As such it is not susceptible to MitM attacks.

Point of note: there seems to be a W3C proposal being worked on that will unify the browser protocol for files in local extensions as "browserext:". However, since that is not in use anywhere yet and the proposal is not official at this point, I am not including it in this pull request.

Proposal link: https://browserext.github.io/browserext/