Bug 1811822 - nsFrameLoader::LoadContext() may return null, yet the webidl binding doesn't expect that., r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D167534
This commit is contained in:
Olli Pettay 2023-01-23 16:07:01 +00:00
parent 32352440fc
commit 0807bf1f0e
3 changed files with 3 additions and 3 deletions

View File

@ -3478,7 +3478,7 @@ already_AddRefed<nsIRemoteTab> nsFrameLoader::GetRemoteTab() {
return nullptr;
}
already_AddRefed<nsILoadContext> nsFrameLoader::LoadContext() {
already_AddRefed<nsILoadContext> nsFrameLoader::GetLoadContext() {
return do_AddRef(GetBrowsingContext());
}

View File

@ -169,7 +169,7 @@ class nsFrameLoader final : public nsStubMutationObserver,
already_AddRefed<nsIRemoteTab> GetRemoteTab();
already_AddRefed<nsILoadContext> LoadContext();
already_AddRefed<nsILoadContext> GetLoadContext();
mozilla::dom::BrowsingContext* GetBrowsingContext();
mozilla::dom::BrowsingContext* GetExtantBrowsingContext();

View File

@ -32,7 +32,7 @@ interface FrameLoader {
* frames, a shim is returned that contains private browsing and app
* information.
*/
readonly attribute LoadContext loadContext;
readonly attribute LoadContext? loadContext;
/**
* Get the root BrowsingContext within the frame.