Hello, I’m porting a chrome extension to FF and trying to go with WebExtensions.
I’m seing a major difference between Chrome and Firefox:
if I create an iframe with a js script as src, the chrome object is not exposed in this script for the Firefox case, this is not the case with Chrome…
When the script is injected in the iframe (using chrome.tabs.executeScript , the chrome object becomes exposed.
Is this an expected behavior ? Any chance to see this corrected ?
Lots of extensions are using iframes for banners and the only workaround I can see is once iframe created to inject a script to all (main page & frames). Since this script is not intended to be used by main page, I’ll need to insert a frame-check at top of script to exit which requires major rework of the extension.
thanks in advance.