|
|
|
@ -16,7 +16,7 @@ const frameHtml = `<!doctype html> |
|
|
|
</style> |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<iframe srcdoc="" sandbox="allow-scripts"></iframe> |
|
|
|
<iframe srcdoc="" sandbox="allow-scripts allow-top-navigation"></iframe> |
|
|
|
${'<'}script type="module"> |
|
|
|
const frame = document.getElementsByTagName('iframe')[0] |
|
|
|
addEventListener('message', event => { |
|
|
|
@ -90,7 +90,7 @@ export class Page extends HTMLElement { |
|
|
|
this.shadowRoot.appendChild(wrap) |
|
|
|
const tmp = document.createElement('iframe') |
|
|
|
if (this.csp !== undefined) { |
|
|
|
tmp.sandbox = "allow-same-origin allow-scripts" |
|
|
|
tmp.sandbox = "allow-same-origin allow-scripts allow-top-navigation" |
|
|
|
const url = new URL( |
|
|
|
'/-/frame', location.href |
|
|
|
) |
|
|
|
|