I'm working on creating a Firefox add-on to show SSL certificate information. I only need to read the certificate, I don't want to change it in any way. I'm trying to use this example to get the code, but the javascript stops running at const {Cc, Ci} = require("chrome");
. The javascript code is ran from a <script>
tag in the HTML file.
Can Firefox add-ons still access the chrome module? Am I missing something, like a permission?
Note: I asked a similar question yesterday, but with FireFox Extensions.