commit ea0147a8b5f334956fb9177974d491beff8e990f
parent 9f62ffea8060ac27b974455ded7c1e046bc6061c
Author: Hiroyuki Ikezoe <hikezoe.birchill@mozilla.com>
Date: Tue, 11 Nov 2025 02:37:59 +0000
Bug 1999389 - Constify BrowserParent::GetIsDocShellActive. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D272090
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom/ipc/BrowserParent.cpp b/dom/ipc/BrowserParent.cpp
@@ -3667,7 +3667,7 @@ mozilla::ipc::IPCResult BrowserParent::RecvRespondStartSwipeEvent(
return IPC_OK();
}
-bool BrowserParent::GetDocShellIsActive() {
+bool BrowserParent::GetDocShellIsActive() const {
return mBrowsingContext && mBrowsingContext->IsActive();
}
diff --git a/dom/ipc/BrowserParent.h b/dom/ipc/BrowserParent.h
@@ -701,7 +701,7 @@ class BrowserParent final : public PBrowserParent,
void NavigateByKey(bool aForward, bool aForDocumentNavigation);
- bool GetDocShellIsActive();
+ bool GetDocShellIsActive() const;
bool GetHasPresented();
bool GetHasLayers();