-
Matt Woodrow authored
Previously we only set some fields as part of WindowGlobalInit, but WindowGlobalParent sets itself as the current window global on the CanonicalBrowsingContext. This exposes a period of time where only part of the document state was set, and this was observable to consumers. This makes OnNewDocument only run when there is a new Document for the same WindowGlobal. Differential Revision: https://phabricator.services.mozilla.com/D75446
5b64e9ba