In bug 142719, one suspicion is that the test actually terminates DumpRenderTree. I think that we can catch such conditions.
Created attachment 251782 [details] proposed patch
Committed r183435