Pull out document.domain tests into a separate window. v1