diff options
author | Moonchild <moonchild@palemoon.org> | 2021-10-22 07:49:59 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-10-22 07:49:59 +0000 |
commit | a7c501d74b5ffbe385e281726cb5252ee1f69852 (patch) | |
tree | de05712c0b5c60db7bafb86b22e1ea046230b52c /layout/style | |
parent | c31539575c8bc5a988be72208ffff9eafd950407 (diff) | |
download | aura-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.cpp | 16 |
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; } |