Closed Bug 2080291 Opened 1 month ago Closed 27 days ago

ContentClassifier misaligns blocking behavior for content-script requests

Categories

(Core :: Privacy: Anti-Tracking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: timhuang, Assigned: timhuang)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

In URLClassifier, we don't block a content script's request to a tracker when the extension has explicit host permission for that host. UrlClassifierCommon::ShouldEnableProtectionForChannel() returns false when the loading principal's AddonAllowsLoad(uri, /* explicit */ true) passes.

But ContentClassifier blocks in this case. It has no equivalent check.

Assignee: nobody → tihuang
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P2

This patch changes the ETP request filter, renamed to ShouldClassifyForETP,
to skip blocking when UrlClassifierCommon::AddonMayLoad() passes. This aligns
the ContentClassifier with url-classifier, whose protection features don't
block a content script's request to a host its extension has explicit host
permission for. Annotation is unchanged, matching url-classifier.

Pushed by tihuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/44377e1e4fb9 https://hg.mozilla.org/integration/autoland/rev/e38fb1c90649 Don't block ContentClassifier requests the loading extension has explicit host permission for. r=emz
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: