Closed Bug 1818782 Opened 2 years ago Closed 2 years ago

PurgeTrackerService will throw error for bad cookie origins

Categories

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

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: bradwerth, Assigned: bradwerth)

References

Details

Attachments

(1 file)

The calls to createContentPrincipalFromOrigin can throw errors and return a null principal. If these are left uncaught, the following lines of JS will attempt to access a property on a null object and fail.

I have a preliminary patch.

Assignee: nobody → bwerth
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/94918ead0cdf Make PurgeTrackerService cookie clearing resilient to bad cookie origins. r=anti-tracking-reviewers,pbz
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: