Revert "Disallow XHR in synchronous tests"

This reverts commit b7ae0960a6cc477eb339d4f8e359b0406e100d10.