Bug 947570 - Rewrite browser_597071.js to fix intermittent timeouts r=smacleod

From d8b8de84b6a3fadb2f198cddba183231bdffcd07 Mon Sep 17 00:00:00 2001