Skip to content

Instantly share code, notes, and snippets.

@amenk
Created October 15, 2023 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amenk/c7b2b6c75087844434002449d8156af6 to your computer and use it in GitHub Desktop.
Save amenk/c7b2b6c75087844434002449d8156af6 to your computer and use it in GitHub Desktop.
Chrome Bug 1492811 Repro
<script>
var w;
function launch() {
w = window.open('popup.html','name',"width=600,height=400,scrollbars=yes,resizable=yes,dependent=yes");
}
function closeWindow() {
w.close();
}
</script>
<button onclick="launch();">open</a>
<script>
window.setTimeout(function() {
opener.closeWindow();
},1);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment