Some document.write() WPTs made the assumption that a setTimeout() in the parent window will run after the load event in the child frame, and there's no such guarantee per spec. The focus fixup rule test similarly relied on the rendering not being suppressed by the time the test run. Do that by awaiting an animation frame, not just a timeout. Differential Revision: https://phabricator.services.mozilla.com/D301259