Using a content script, I plan to insert a UI into the page in an <iframe>
, but I have a few concerns.
- Do people commonly use settings/extensions to block
iframe
s on the page? - If my extension's
iframe
is blocked, is there a way for me to detect this? - Any other reasons to avoid the use of
iframe
s in this scenario?
There are similar questions on the site, but they don't specifically ask what I want to know.
[The reason I want to use an iframe
is this: My extension has to run independently of the website loaded (i.e. on any webpage). Its content script needs to show a UI for settings/help etc. Currently it does so by inserting a div into the page's DOM. However CSS from the webpage gets applied to the extension's UI, something which is harder to fix than one would think. Using an <iframe>
seems to a way to avoid this issue.]