summaryrefslogtreecommitdiff
path: root/layout/style
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-22 07:49:59 +0000
committerMoonchild <moonchild@palemoon.org>2021-10-22 07:49:59 +0000
commita7c501d74b5ffbe385e281726cb5252ee1f69852 (patch)
treede05712c0b5c60db7bafb86b22e1ea046230b52c /layout/style
parentc31539575c8bc5a988be72208ffff9eafd950407 (diff)
downloadaura-central-a7c501d74b5ffbe385e281726cb5252ee1f69852.tar.gz
Issue %3019 - 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 'layout/style')
-rw-r--r--layout/style/Loader.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/layout/style/Loader.cpp b/layout/style/Loader.cpp
index e3a49b3b6..2103aaf35 100644
--- a/layout/style/Loader.cpp
+++ b/layout/style/Loader.cpp
@@ -792,22 +792,6 @@ SheetLoadData::OnStreamComplete(nsIUnicharStreamLoader* aLoader,
if (NS_FAILED(aStatus)) {
LOG_WARN((" Load failed: status 0x%x", aStatus));
- // Handle sheet not loading error because source was a tracking URL.
- // We make a note of this sheet node by including it in a dedicated
- // array of blocked tracking nodes under its parent document.
- //
- // Multiple sheet load instances might be tied to this request,
- // we annotate each one linked to a valid owning element (node).
- if (aStatus == NS_ERROR_TRACKING_URI) {
- nsIDocument* doc = mLoader->GetDocument();
- if (doc) {
- for (SheetLoadData* data = this; data; data = data->mNext) {
- // mOwningElement may be null but AddBlockTrackingNode can cope
- nsCOMPtr<nsIContent> content = do_QueryInterface(data->mOwningElement);
- doc->AddBlockedTrackingNode(content);
- }
- }
- }
mLoader->SheetComplete(this, aStatus);
return NS_OK;
}