Only top window should have type `main_frame`
Call XHR.open even if the request will be blocked

Without calling it an error may be thrown if other XHR parameters are set.
Respect `defer` attribute when mirroring
Move MutationObserver shim

Since it will be used only for older Safari versions, move it to Safarai
related code, so it doesn't pollute the content scripts.