Basically the function location.reload() is causing browser to hang as browser is not able to handle multiple reloads but similar issue cannot be seen in Firefox and chrome as i am able to close the current tab.
Latest brave browser in linux.
Use the below code and save it as html file and then open it up on browser :-
<script> open(""); setInterval('location.reload()',1); </script>
open up pop.html that i have attached
i have attached html file that contains the code causing denial of service,