Issue 839848:
Crash on page with lots of Canvas updates

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Steps to reproduce the problem:
1. Browse to https://weather.wilmslowastro.com/gauges-ss.php
2. Wait a few seconds to a few minutes
3. Aw, Snap!
What is the expected behavior?
The page should update every 5 seconds or so for 20 minutes before timing out.
What went wrong?
Crashes with Aw, Snap! error.
Crashed report ID: a949d5123a1fe70e
How much crashed? Just one tab
Is it a problem with a plugin? No
Did this work before? Yes 65
Chrome version: 66.0.3359.139 Channel: stable
OS Version: 10.0
Flash Version:
This page (and many others using the same gauges code) has worked fine for years in previous versions of Chrome. It continues to work correctly in other browsers (tested IE 11, Edge, Firefox, and Safari)

Wild stab... is this something to do with SetTimeout() and the stack?
Each call to setTimeout() is now being pushed onto the stack, I do not see this with Firefox, the stack there only contains the last async call to update() in the code below. Chrome 66 the stack just grows continuously.
<!DOCTYPE HTML>
<html lang="en">
<head>
<script>
var count = 0;
function update() {
document.getElementById('update_me').innerHTML = count;
count++;
setTimeout(update, 1);
}
setTimeout(update, 1);
</script>
</head>
<body>
<div id="update_me"></div>
</body>
</html>

I am also getting this issue on Cumulus MX (http://localhost:8998/index.html). I am running Chrome on a Mac High Sierra 10.13.4 (17E202). The Cumulus MX page reloads fine every time manually but then 2-3 minutes later it goes Aw Snap again.