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>2022-04-01 16:05:02 +0200
commit7c90c0205cd9fda52caf0d6b2a42f8a53c6fba37 (patch)
treec0034e58dac5a1c42be6124f22b314a0e999922d /layout/style
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 '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 e3a49b3b6a..2103aaf351 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;
}