Expose some or all SecureContext-restricted APIs in content scripts on insecure schemes (http) #478
Labels
opposed: chrome
Opposed by Chrome
opposed: firefox
Opposed by Firefox
opposed: safari
Opposed by Safari
proposal
Proposal for a change or new feature
Several web platform APIs are annotated to require a Secure Context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts), with the primary goal to defend against MITM attackers.
These restrictions are also applied to content scripts running in insecure contexts (http:-URLs). This ranges from useful stateless APIs to stateful APIs that persist data:
crypto.subtle.digest
can be used to create (SHA) hashes.caches
(Cache API) offers persistence of data.There are occasionally requests to expose some functions to content scripts, and here is even one that requests a blanket exposure of all SecureContext-restricted APIs: https://bugzilla.mozilla.org/show_bug.cgi?id=1860329. Should we expose some SecureContext-restricted APIs to all content scripts, and if yes, how?
The text was updated successfully, but these errors were encountered: