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
This commit is contained in:
Ho Cheung 2023-01-23 12:55:31 +00:00
parent 68d6709804
commit 7263b6c141

View file

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