Domanda

Can we embed a website inside a firefox addon. I am currently building an addon with multiple functions and though addon is appropriate for few functions, website is better for rest of the functions.

If I intend to create an addon and also have website embeded inside it for some of the operations, is it possible. How do we do it?

È stato utile?

Soluzione

Yes, you can have web-content in a Firefox addon, but be very careful or else the web page (or anything that intercepts the web page) will have access to everything Firefox itself could do!

If you use an XUL iframe (or any iframe element or runnable data inserted from untrusted content in Chrome:// context), please read this article carefully:

https://developer.mozilla.org/en-US/docs/Displaying_web_content_in_an_extension_without_security_issues

Altri suggerimenti

see my addon here: https://addons.mozilla.org/en-US/firefox/addon/xpicompiler/ see about:addons-memory addon here: https://addons.mozilla.org/en-US/firefox/addon/about-addons-memory/

very simple addons, they contain a webpage. and in the manifest file we have set contentaccesible=true

in my addon if you type about:xpiler you get to that pgae in the other addon if you type in the url bar about:addons-memory you get to his page.

if you need help i can write a demo for you in 10 minutes

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top