From 7263b6c141e78d3987f6b2dd1f45b0cbfacecfad Mon Sep 17 00:00:00 2001 From: Ho Cheung Date: Mon, 23 Jan 2023 12:55:31 +0000 Subject: [PATCH] Bug 1811225 - Remove unused parameters from CheckRecursiveLoad r=manuel Remove unused parameters from CheckRecursiveLoad in DocumentLoadListener.cpp Differential Revision: https://phabricator.services.mozilla.com/D167348 --- netwerk/ipc/DocumentLoadListener.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/netwerk/ipc/DocumentLoadListener.cpp b/netwerk/ipc/DocumentLoadListener.cpp index 5a21aac009f4..8ee493aaba38 100644 --- a/netwerk/ipc/DocumentLoadListener.cpp +++ b/netwerk/ipc/DocumentLoadListener.cpp @@ -472,9 +472,7 @@ WindowGlobalParent* DocumentLoadListener::GetParentWindowContext() const { } bool CheckRecursiveLoad(CanonicalBrowsingContext* aLoadingContext, - nsDocShellLoadState* aLoadState, - DocumentLoadListener* aDLL, bool aIsDocumentLoad, - LoadInfo* aLoadInfo) { + nsDocShellLoadState* aLoadState, bool aIsDocumentLoad) { // Bug 136580: Check for recursive frame loading excluding about:srcdoc URIs. // srcdoc URIs require their contents to be specified inline, so it isn't // possible for undesirable recursion to occur without the aid of a @@ -613,8 +611,7 @@ auto DocumentLoadListener::Open(nsDocShellLoadState* aLoadState, // Check for infinite recursive object or iframe loads if (aLoadState->OriginalFrameSrc() || !mIsDocumentLoad) { - if (!CheckRecursiveLoad(loadingContext, aLoadState, this, mIsDocumentLoad, - aLoadInfo)) { + if (!CheckRecursiveLoad(loadingContext, aLoadState, mIsDocumentLoad)) { *aRv = NS_ERROR_RECURSIVE_DOCUMENT_LOAD; mParentChannelListener = nullptr; return nullptr;