Question

EDIT:

Is there a way without creating an extension?

EDIT 2:

The urls passed in are linking to an api that relates to connectino error (as far as I understand)... I mean when the browser actually crashes... i.e. runs out of memory for example!

I am implementing a kiosk solution using Chrome... I have got it securely locked down but I am having issues with one thing.

When chrome crashes (i am simulation a browser crash with javascript) it shows an error page.

From that error page you are able to go into google search and other google products.

My question is, is there a way to change or disable these error pages?

Thanks

Was it helpful?

Solution

Stolen from this answer:

chrome.webRequest.onErrorOccurred.addListener(onErrorOccurred, {urls: ["http://*/*", "https://*/*"]});

function onErrorOccurred(details)
{
  if (details.error == "net::ERR_NAME_NOT_RESOLVED") // change this ERR to whatever
    chrome.tabs.update(details.tabId, {url: "..."});
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top