diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp index 2fd5e20714a3..cea6fa7e21fe 100644 --- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -16177,16 +16177,5 @@ bool Document::HasRecentlyStartedForegroundLoads() { return false; } -already_AddRefed -Document::RecomputeContentBlockingAllowListPrincipal( - nsIURI* aURIBeingLoaded, const OriginAttributes& aAttrs) { - AntiTrackingCommon::RecomputeContentBlockingAllowListPrincipal( - aURIBeingLoaded, aAttrs, - getter_AddRefs(mContentBlockingAllowListPrincipal)); - - nsCOMPtr copy = mContentBlockingAllowListPrincipal; - return copy.forget(); -} - } // namespace dom } // namespace mozilla diff --git a/dom/base/Document.h b/dom/base/Document.h index 42ed1ac8b90c..4eb85a7af65f 100644 --- a/dom/base/Document.h +++ b/dom/base/Document.h @@ -585,9 +585,6 @@ class Document : public nsINode, return mContentBlockingAllowListPrincipal; } - already_AddRefed RecomputeContentBlockingAllowListPrincipal( - nsIURI* aURIBeingLoaded, const OriginAttributes& aAttrs); - // EventTarget void GetEventTargetParent(EventChainPreVisitor& aVisitor) override; EventListenerManager* GetOrCreateListenerManager() override; diff --git a/dom/base/ThirdPartyUtil.cpp b/dom/base/ThirdPartyUtil.cpp index e539988bf649..4e166a1e13fc 100644 --- a/dom/base/ThirdPartyUtil.cpp +++ b/dom/base/ThirdPartyUtil.cpp @@ -162,8 +162,8 @@ ThirdPartyUtil::GetContentBlockingAllowListPrincipalFromWindow( OriginAttributes attrs = docShell ? nsDocShell::Cast(docShell)->GetOriginAttributes() : OriginAttributes(); - principal = - doc->RecomputeContentBlockingAllowListPrincipal(aURIBeingLoaded, attrs); + AntiTrackingCommon::RecomputeContentBlockingAllowListPrincipal( + aURIBeingLoaded, attrs, getter_AddRefs(principal)); } if (!principal || !principal->GetIsContentPrincipal()) {