From 7c90c0205cd9fda52caf0d6b2a42f8a53c6fba37 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 22 Oct 2021 07:49:59 +0000 Subject: Issue #1822 - Part 4: Remove URL classifier and internal blocklist errors. This removes NS_ERROR_{TRACKING|MALWARE|PHISHING|UNWANTED|BLOCKED}_URI that are no longer in use. --- docshell/base/nsDocShell.cpp | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'docshell') diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 55f09d35b1..0369657004 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -7630,42 +7630,6 @@ nsDocShell::EndPageLoad(nsIWebProgress* aProgress, nullptr); // Headers stream } - // Handle iframe document not loading error because source was - // a tracking URL. We make a note of this iframe node by including - // it in a dedicated array of blocked tracking nodes under its parent - // document. (document of parent window of blocked document) - if (isTopFrame == false && aStatus == NS_ERROR_TRACKING_URI) { - // frameElement is our nsIContent to be annotated - nsCOMPtr frameElement; - nsPIDOMWindowOuter* thisWindow = GetWindow(); - if (!thisWindow) { - return NS_OK; - } - - frameElement = thisWindow->GetFrameElement(); - if (!frameElement) { - return NS_OK; - } - - // Parent window - nsCOMPtr parentItem; - GetSameTypeParent(getter_AddRefs(parentItem)); - if (!parentItem) { - return NS_OK; - } - - nsCOMPtr parentDoc; - parentDoc = parentItem->GetDocument(); - if (!parentDoc) { - return NS_OK; - } - - nsCOMPtr cont = do_QueryInterface(frameElement); - parentDoc->AddBlockedTrackingNode(cont); - - return NS_OK; - } - if (sURIFixup) { // // Try and make an alternative URI from the old one @@ -7840,9 +7804,6 @@ nsDocShell::EndPageLoad(nsIWebProgress* aProgress, aStatus == NS_ERROR_NET_INTERRUPT || aStatus == NS_ERROR_NET_RESET || aStatus == NS_ERROR_OFFLINE || - aStatus == NS_ERROR_MALWARE_URI || - aStatus == NS_ERROR_PHISHING_URI || - aStatus == NS_ERROR_UNWANTED_URI || aStatus == NS_ERROR_UNSAFE_CONTENT_TYPE || aStatus == NS_ERROR_REMOTE_XUL || aStatus == NS_ERROR_INTERCEPTION_FAILED || -- cgit v1.2.3