зеркало из https://github.com/mozilla/gecko-dev.git
878d4b6711
We go to great lengths to try to avoid initializing FrameLoaders during document updates. That means that when `BindToTree` is called, the element's FrameLoader is not initialized, and it has no BrowsingContext. Calling `GetBrowsingContext()` (which happens as a side-effect of `HTMLIFrameElement::RefreshFeaturePolicy`), however, forces eager initialization, which can cause any number of problems. This patch moves that logic from being triggered by `BindToTree` to being triggered by `BrowsingContext::Embed`, which happens as soon as the BrowsingContext is bound to the element, but does not force it to be created early. Differential Revision: https://phabricator.services.mozilla.com/D55872 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
resources/content | ||
shistory | ||
test | ||
moz.build |