Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you force Chrome pages/tabs to crash using JavaScript?

Trying to set window.location or using window.navigate() to make the browser go to about:crash or chrome://crash doesn't work. Is there a way to do it?

like image 214
trusktr Avatar asked Jun 10 '12 02:06

trusktr


People also ask

How do I make Google Chrome crash?

But if you use Chrome Web browser, it turns out there is a simpler way to crash it. Just enter in a specific 16-character string in the address bar of Chrome and it will disappear as if it saw a ghost. Entering in the following 16-character link "http://a/%%30%30" (without the quotes) crashes Chrome.

How do you crash someones Chromebook?

Due to a bug in Chromium engine, you can crash someone's Google Chrome browser just by adding a NULL char in the URL string. The bug was discovered by Andris Atteka and he has explained in his blog. He demonstrated the bug using 26 characters length string, but you crash Google Chrome using just 16 characters.

How do I enable crash logs in Chrome?

Reporting the crash directly: If possible, and you are using Google Chrome, enable crash reporting in Google Chrome's settings: go to chrome://chrome/settings, click "Show advanced settings..." and in the Privacy section select select "Automatically send usage statistics and crash reports to Google", then see the ...

Why do Chrome tabs become unresponsive?

This issue usually means there's a graphics rendering issue. Sometimes, opening a new tab and browsing to another page can help the affected tab to load. If this doesn't help, try restarting Chrome or your device.


2 Answers

FUN FUN LOOP:

 txt = "a"; while(1){     txt = txt += "a";    //add as much as the browser can handle } //[evil laugh] BOOM! All memory used up, and it is now CRASHED! 

http://jsfiddle.net/DerekL/M45Cn/1/

enter image description here

Sorry for the Chinese characters...


Extra

Fun Fun Loop also works on Firefox! enter image description here

And I have to give an applause to Safari, because it automatically reload the page when it is about to crash! Good job Webkit developers!

Oh yeah...

WARNING: Don't try it in Internet Explorer... Because it crashed not my browser, instead, it crashed my Windows 7... enter image description here Yes. I have to restart the computer after that thing.

like image 138
Derek 朕會功夫 Avatar answered Oct 05 '22 23:10

Derek 朕會功夫


I realize this question is over a year old, but apparently you can use chrome://inducebrowsercrashforrealz.

Here is a list of additional debug chrome:// URLs, taken from chrome://about:

chrome://crash chrome://kill chrome://hang chrome://shorthang chrome://gpuclean chrome://gpucrash chrome://gpuhang chrome://ppapiflashcrash chrome://ppapiflashhang chrome://restart 
like image 32
nyuszika7h Avatar answered Oct 05 '22 23:10

nyuszika7h