> document.open() sometimes ends DRT so without this, the test will be flaky.
How can this possibly be non-deterministic? Is there an uninitialized variable somewhere?
Looks like you're covering up a real bug.

(In reply to comment #4)
> > document.open() sometimes ends DRT so without this, the test will be flaky.
>
> How can this possibly be non-deterministic? Is there an uninitialized variable somewhere?
>
> Looks like you're covering up a real bug.
Maybe. The last time I checked, this was expected behavior per spec and non-determinism was due to some race conditions. But then I'm not too familiar with this area.

(In reply to comment #8)
> > it appears that this problem no longer reproduces at least on this test
>
> Perhaps it's more complicated when the script runs during load, as opposed to unload handler.
Hm... that's possible. I guess Chromium WebKit gardeners will notice if this test becomes flaky :)