For testing purposes, I need a quick and easy way to crash my tab/browser. I'm stress testing my website, and these sites are invaluable for Google Chrome.
These sites can be found at chrome://about
. Another site (not listed on chrome://about
is chrome://inducebrowsercrashforrealz
- it will crash the top-level process for Chrome, including all tabs in all browser windows and all opened apps). Originally, I was trying to see what data was preserved in case of a crash. For example, the textarea
in our form remained filled out upon restarting.
However, these URL's are only valuable if I manually type the URL into the browser. Using this question (and many others I don't have the links to), I confirmed what I suspected- you can't
chrome://
pageschrome://
pageschrome://
pages (ie. iframe)Link to chrome:// url from a webpage
This poses a problem- I want to cause the browser to crash (chrome://inducebrowsercrashforrealz
) when the user reaches a specific part of the form. Is there any script which can cause the browser to crash?
I've tried while
loops, but even when they're exponential, they take a while to kill the page, and never affect the browser. I'd like the crash to be either instantaneous, or eat up enough memory for the browser to freeze.
Type chrome://inducebrowsercrashforrealz/ in the URL bar. This is a built-in debugging link that simulates a browser crash. Keep in mind that this will crash the Chromebook, so you will lose any unsaved work.
http://a/%%30%30 is decoded as http://a/%00 because %30 is 0. http://a/%00 is then further decoded by another piece of code as http://a/<NULL> because %00 is the NULL character. The bug was originally demonstrated by Andris Atteka who simply added a null character to the string.
If crash reporting is enabled, browse to chrome://crashes to find the crash IDs and file a bug. If you have problems with Chrome on a Microsoft® Windows® device, use Windows Process Explorer logs to gather details about how Chrome interacts with Windows.
<!DOCTYPE html>
<html>
<body>
<h2>Crashing Now</h2>
<p>Hit Ok To Crash</p>
<p id="demo"></p>
<script>
onbeforeunload = function(){localStorage.x=1};
if(confirm("Do you REALLY want me to crash your browser?")){
setTimeout(function(){
while(1)location.reload(1)
}, 1000)
}
</script>
</body>
</html>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With