summaryrefslogtreecommitdiff
path: root/docshell
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-22 07:49:59 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 16:05:02 +0200
commit7c90c0205cd9fda52caf0d6b2a42f8a53c6fba37 (patch)
treec0034e58dac5a1c42be6124f22b314a0e999922d /docshell
parenta95439db61c4530afae3967e2912d6ca38f1bbda (diff)
downloaduxp-7c90c0205cd9fda52caf0d6b2a42f8a53c6fba37.tar.gz
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.
Diffstat (limited to 'docshell')
-rw-r--r--docshell/base/nsDocShell.cpp39
1 files changed, 0 insertions, 39 deletions
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<nsIDOMElement> frameElement;
- nsPIDOMWindowOuter* thisWindow = GetWindow();
- if (!thisWindow) {
- return NS_OK;
- }
-
- frameElement = thisWindow->GetFrameElement();
- if (!frameElement) {
- return NS_OK;
- }
-
- // Parent window
- nsCOMPtr<nsIDocShellTreeItem> parentItem;
- GetSameTypeParent(getter_AddRefs(parentItem));
- if (!parentItem) {
- return NS_OK;
- }
-
- nsCOMPtr<nsIDocument> parentDoc;
- parentDoc = parentItem->GetDocument();
- if (!parentDoc) {
- return NS_OK;
- }
-
- nsCOMPtr<nsIContent> 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 ||