Reproduce by running
let x = document.createElement('iframe')
x.src='data:text/html,<iframe src="https://lavamoat.github.io"></iframe>'
document.body.appendChild(x)
setTimeout(()=>{
x.contentWindow[0].alert.call(window, 'hi')
},500)
honestly not sure how youd fix this
Reproduce by running
honestly not sure how youd fix this