Bug 1602318 - Expose LoadContext on BrowsingContext webidl. r=nika,kmag

Differential Revision: https://phabricator.services.mozilla.com/D71135
This commit is contained in:
Matt Woodrow
2020-04-20 23:04:09 +00:00
parent 868846409a
commit 27d0d52d35
12 changed files with 84 additions and 57 deletions

View File

@@ -20,7 +20,6 @@ NS_IMPL_ISUPPORTS(LoadContext, nsILoadContext, nsIInterfaceRequestor)
LoadContext::LoadContext(nsIPrincipal* aPrincipal,
nsILoadContext* aOptionalBase)
: mTopFrameElement(nullptr),
mNestedFrameId(0),
mIsContent(true),
mUseRemoteTabs(false),
mUseRemoteSubframes(false),
@@ -68,13 +67,6 @@ LoadContext::GetTopFrameElement(dom::Element** aElement) {
return NS_OK;
}
NS_IMETHODIMP
LoadContext::GetNestedFrameId(uint64_t* aId) {
NS_ENSURE_ARG(aId);
*aId = mNestedFrameId;
return NS_OK;
}
NS_IMETHODIMP
LoadContext::GetIsContent(bool* aIsContent) {
MOZ_ASSERT(mIsNotNull);