|
|
@@ -989,9 +989,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
const pageData = await frameData.processor.getPageData();
|
|
|
frameElement.removeAttribute(docUtil.WIN_ID_ATTRIBUTE_NAME);
|
|
|
if (pageData.content.match(NOSCRIPT_TAG_FOUND) || pageData.content.match(SCRIPT_TAG_FOUND)) {
|
|
|
- frameElement.setAttribute("sandbox", "allow-scripts allow-same-origin");
|
|
|
+ frameElement.setAttribute("sandbox", "allow-popups allow-scripts allow-same-origin");
|
|
|
} else {
|
|
|
- frameElement.setAttribute("sandbox", "");
|
|
|
+ frameElement.setAttribute("sandbox", "allow-popups");
|
|
|
}
|
|
|
if (frameElement.tagName == "OBJECT") {
|
|
|
frameElement.setAttribute("data", "data:text/html," + pageData.content);
|