There are a lot of edge cases in code right now because we create it the other way. For example, when we create the initial empty document, that may trigger notifications to the WebFrameWidget's client...
... but it may not actually exist yet because we're still in the middle of frame creation, leading to null checks with unclear purposes.
Comment 1 by bugdroid1@chromium.org
, Apr 17 2018