Bug 947570 - Rewrite browser_597071.js to fix intermittent timeouts. r=smacleod, a=test-only