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
Родитель 32352440fc
Коммит 0807bf1f0e
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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());
}

Просмотреть файл

@ -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();

Просмотреть файл

@ -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.