gecko-dev/docshell/base
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
..
crashtests Bug 1599662 - Add process switching to the reftest harness so that we can get better coverage for fission. r=kmag 2019-12-04 08:57:11 +00:00
timeline Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
BaseHistory.cpp Bug 1600362 - Cleanup IntersectionObserver. r=smaug 2019-11-29 20:39:36 +00:00
BaseHistory.h Bug 1593690 - Start visited queries from an idle timer. r=mak,lina 2019-11-06 12:10:59 +00:00
BrowsingContext.cpp Bug 1595936: Part 2 - Refresh feature policy when attaching browsing context. r=farre,baku 2020-01-24 19:03:10 +00:00
BrowsingContext.h Bug 1595936: Part 2 - Refresh feature policy when attaching browsing context. r=farre,baku 2020-01-24 19:03:10 +00:00
BrowsingContextGroup.cpp Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
BrowsingContextGroup.h Backed out changeset d3bd59939150 (bug 1601781) for build bustages at BrowsingContextGroup.h. CLOSED TREE 2019-12-06 00:16:31 +02:00
CanonicalBrowsingContext.cpp Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
CanonicalBrowsingContext.h Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
ChildProcessChannelListener.cpp Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag 2020-01-06 21:58:48 +00:00
ChildProcessChannelListener.h Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan 2020-01-21 09:51:27 +00:00
IHistory.h Bug 1591717 - Add a pref to notify of unvisited uris in the history service. r=mak,lina 2019-11-04 13:28:58 +00:00
LoadContext.cpp Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika 2019-07-16 16:40:19 -07:00
LoadContext.h Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika 2019-07-16 16:40:19 -07:00
SerializedLoadContext.cpp
SerializedLoadContext.h
SyncedContext.h Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
SyncedContextInlines.h Bug 1583863 - Part 1: Introduce common SyncedContext logic, r=peterv 2020-01-20 14:57:40 +00:00
WindowContext.cpp Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
WindowContext.h Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
moz.build Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
nsAboutRedirector.cpp Bug 1609869 - Make about:networking an HTML page r=Gijs 2020-01-23 16:42:02 +00:00
nsAboutRedirector.h
nsCTooltipTextProvider.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDSURIContentListener.cpp Bug 1432856 - Extended focus methods in Window.webidl, Client.webidl and Element.webidl to pass CallerType. r=smaug 2020-01-16 14:38:40 +00:00
nsDSURIContentListener.h Bug 1574372 - Allow using nsWebNavigationInfo statically. r=bzbarsky 2019-12-17 03:01:37 +00:00
nsDefaultURIFixup.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDefaultURIFixup.h Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs 2019-10-12 12:37:51 +00:00
nsDocShell.cpp Bug 1601660 - Part 2: Remove getContentBlockingLog from nsIDocShell.idl r=Ehsan 2020-01-24 11:06:49 +00:00
nsDocShell.h Bug 1594280 - Fix uses of nsIDocShellTreeItem in nsIDocShellTreeItem in nsDocShell::ValidateOrigin. r=kmag 2020-01-23 18:14:42 +00:00
nsDocShellEditorData.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDocShellEditorData.h
nsDocShellEnumerator.cpp Bug 1592599 - Switch nsIDocShell.getDocShellEnumerator() away from using nsISimpleEnumerator; r=bzbarsky 2019-11-18 20:11:58 +00:00
nsDocShellEnumerator.h Bug 1592599 - Switch nsIDocShell.getDocShellEnumerator() away from using nsISimpleEnumerator; r=bzbarsky 2019-11-18 20:11:58 +00:00
nsDocShellLoadState.cpp Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag 2020-01-06 21:58:48 +00:00
nsDocShellLoadState.h Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag 2020-01-06 21:58:48 +00:00
nsDocShellLoadTypes.h Bug 1578624 - P3: Move conversion from LoadURIOptions processing into a static constructor for nsDocShellLoadState. r=kmag 2019-10-11 02:27:03 +00:00
nsDocShellTreeOwner.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDocShellTreeOwner.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsIContentViewer.idl Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag 2019-08-08 16:07:12 +00:00
nsIContentViewerEdit.idl
nsIDocShell.idl Bug 1601660 - Part 2: Remove getContentBlockingLog from nsIDocShell.idl r=Ehsan 2020-01-24 11:06:49 +00:00
nsIDocShellTreeItem.idl Bug 1594288 - Remove nsIDocShellTreeItem.findChildWithName. r=annyG 2019-12-12 13:29:39 +00:00
nsIDocShellTreeOwner.idl
nsIDocumentLoaderFactory.idl
nsILoadContext.idl Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika 2019-07-16 16:40:19 -07:00
nsILoadURIDelegate.idl
nsIPrivacyTransitionObserver.idl
nsIReflowObserver.idl
nsIRefreshURI.idl Bug 1602483 part 1. Add a window id argument to SetupRefreshURIFromHeader. r=ckerschb 2019-12-12 16:41:21 +00:00
nsIScrollObserver.h
nsITooltipListener.idl
nsITooltipTextProvider.idl
nsIURIFixup.idl Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs 2019-10-12 12:37:51 +00:00
nsIWebNavigation.idl
nsIWebNavigationInfo.idl
nsIWebPageDescriptor.idl
nsPingListener.cpp Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
nsPingListener.h
nsRefreshTimer.cpp
nsRefreshTimer.h
nsWebNavigationInfo.cpp Bug 1574372 - Allow using nsWebNavigationInfo statically. r=bzbarsky 2019-12-17 03:01:37 +00:00
nsWebNavigationInfo.h Bug 1574372 - Allow using nsWebNavigationInfo statically. r=bzbarsky 2019-12-17 03:01:37 +00:00