We should probably merge https://chromium.googlesource.com/chromium/blink/+/d5b57e33ccbf9a89912773d1b12374fbc7f715f8 Second try. This time with a different approach to deal with tests. See the EventSender change (this kinda reverts r150324). Before the initial document layout, we shouldn't force a layout for mouse events, because they are not intended for the new document anyway - the user can't see the document yet! Just ignore those events by making the hit tests match nothing. Otherwise, the hit test would force a layout, which is undesirable because that leads to a flash of an empty document.
I'm dubious about this.