|
|
@@ -550,11 +550,11 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
async frames(initialization) {
|
|
|
const frameElements = Array.from(this.doc.querySelectorAll("iframe, frame, object[type=\"text/html\"][data]"));
|
|
|
await Promise.all(frameElements.map(async frameElement => {
|
|
|
+ DomProcessorHelper.setFrameEmptySrc(frameElement);
|
|
|
+ frameElement.setAttribute("sandbox", "");
|
|
|
const frameWindowId = frameElement.getAttribute(WIN_ID_ATTRIBUTE_NAME);
|
|
|
if (frameWindowId) {
|
|
|
const frameData = this.options.framesData.find(frame => frame.windowId == frameWindowId);
|
|
|
- DomProcessorHelper.setFrameEmptySrc(frameElement);
|
|
|
- frameElement.setAttribute("sandbox", "");
|
|
|
if (frameData) {
|
|
|
if (initialization) {
|
|
|
const options = Object.create(this.options);
|