In case the commit message was not clear, it is literally impossible for a compliant browser to pass this test without this change, because the `loadend` event is supposed to be dispatched before the readyState is reset to UNSENT.