Hello everyone.
I am porting a legacy extension to the new WebExt. The main problem with this extension is that it works loading webpages into iframes, but as far as I’ve read that’s not possible with some websites for security reasons. Indeed sometimes I get the “does not permit cross-origin framing” and the extension stop working there. The old extension created the iframes like this:
this.newIframe = function(URL) {
this.myIframe = this.getDocument().createElement("Myiframe");
this.myIframe.setAttribute("id", "MyIframe" + indexIframes);
this.myIframe.setAttribute("name", "MyIframe" + indexIframes);
}
Is there any way to make this work in WebExt or an alternative?
Thank you in advance.
Greetings.