We want to create the source fragment before trying to use it in URIUtils::ResetWithSource. The testcase triggers an assertion related to unbalanced onload blocking/unblocking, fixing that by blocking onload on the new document we're setting in OnTransformDone and unblocking onload on the old document.