gecko-dev/docshell
Kris Maglione 878d4b6711 Bug 1595936: Part 2 - Refresh feature policy when attaching browsing context. r=farre,baku
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
2020-01-24 19:03:10 +00:00
..
base Bug 1595936: Part 2 - Refresh feature policy when attaching browsing context. r=farre,baku 2020-01-24 19:03:10 +00:00
build Bug 1574372 - Allow using nsWebNavigationInfo statically. r=bzbarsky 2019-12-17 03:01:37 +00:00
resources/content Bug 1562642 - add missing license in docshell/resources/content/netError.js r=smaug 2019-11-12 08:26:18 +00:00
shistory Bug 1610386 - Remove nsAutoPtr usage from docshell/. r=bzbarsky 2020-01-21 22:29:00 +00:00
test Bug 1598513. Apply the same polling fixes as in bug 1605807 but to this test. r=kmag 2020-01-21 20:42:07 +00:00
moz.build Bug 1594981 - update Core::DOM* and Core::Storage* bugzilla product and component meta data in moz.build files after reorganization in bug 1594717. r=annevk 2019-11-08 12:17:57 +00:00