From 8a817efa455ee6933deb978f74da281bcb0c29e0 Mon Sep 17 00:00:00 2001 From: Artur Iunusov Date: Thu, 22 Feb 2024 10:13:14 +0000 Subject: [PATCH] Bug 1770944 - Remove `isInIsolatedMozBrowserElement`. r=smaug,necko-reviewers,kershaw,valentin Depends on D183229 Differential Revision: https://phabricator.services.mozilla.com/D183230 --- caps/BasePrincipal.cpp | 7 ----- caps/BasePrincipal.h | 5 ---- caps/nsIPrincipal.idl | 11 -------- extensions/permissions/PermissionManager.cpp | 28 +++++--------------- netwerk/test/unit/test_cache_jar.js | 25 ++++++++--------- 5 files changed, 17 insertions(+), 59 deletions(-) diff --git a/caps/BasePrincipal.cpp b/caps/BasePrincipal.cpp index 6cd94741b0a9..a805b6325c1d 100644 --- a/caps/BasePrincipal.cpp +++ b/caps/BasePrincipal.cpp @@ -1190,13 +1190,6 @@ BasePrincipal::GetPrivateBrowsingId(uint32_t* aPrivateBrowsingId) { return NS_OK; } -NS_IMETHODIMP -BasePrincipal::GetIsInIsolatedMozBrowserElement( - bool* aIsInIsolatedMozBrowserElement) { - *aIsInIsolatedMozBrowserElement = IsInIsolatedMozBrowserElement(); - return NS_OK; -} - nsresult BasePrincipal::GetAddonPolicy( extensions::WebExtensionPolicy** aResult) { AssertIsOnMainThread(); diff --git a/caps/BasePrincipal.h b/caps/BasePrincipal.h index 9304be7dee3f..c1886646122d 100644 --- a/caps/BasePrincipal.h +++ b/caps/BasePrincipal.h @@ -163,8 +163,6 @@ class BasePrincipal : public nsJSPrincipals { NS_IMETHOD GetIsIpAddress(bool* aIsIpAddress) override; NS_IMETHOD GetIsLocalIpAddress(bool* aIsIpAddress) override; NS_IMETHOD GetIsOnion(bool* aIsOnion) override; - NS_IMETHOD GetIsInIsolatedMozBrowserElement( - bool* aIsInIsolatedMozBrowserElement) final; NS_IMETHOD GetUserContextId(uint32_t* aUserContextId) final; NS_IMETHOD GetPrivateBrowsingId(uint32_t* aPrivateBrowsingId) final; NS_IMETHOD GetSiteOrigin(nsACString& aSiteOrigin) final; @@ -250,9 +248,6 @@ class BasePrincipal : public nsJSPrincipals { uint32_t PrivateBrowsingId() const { return mOriginAttributes.mPrivateBrowsingId; } - bool IsInIsolatedMozBrowserElement() const { - return mOriginAttributes.mInIsolatedMozBrowser; - } PrincipalKind Kind() const { return mKind; } diff --git a/caps/nsIPrincipal.idl b/caps/nsIPrincipal.idl index bf60f83b0468..a3849dd72315 100644 --- a/caps/nsIPrincipal.idl +++ b/caps/nsIPrincipal.idl @@ -586,17 +586,6 @@ interface nsIPrincipal : nsISupports */ [infallible] readonly attribute unsigned long privateBrowsingId; - /** - * Returns true iff the principal is inside an isolated mozbrowser element. - * is not considered to be a mozbrowser element. - *