Closed Bug 1619602 Opened 6 years ago Closed 6 years ago

Recompute ContentBlockingAllowListPrincipal if it is a top-level load

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: dimi, Assigned: timhuang)

References

Details

Attachments

(2 files)

See Bug 1612378 Comment 6 for details.

See Also: → 1612378
Assignee: nobody → tihuang
Status: NEW → ASSIGNED

For top-level load, we only recompute the ContentBlockingAllowListPrincipal
if the original one is a NullPrincipal. This is for the case for the
initial navigation from about:blank to the loading page. But if we do a
navigation that it is not from the about:blank, we won't recompute it.
This introduces an issue that we would use a wrong principal for the
top-level loading channel.

This patch enforces the recomputation for the top-level loading
regardlesss if the original ContentBlockingAllowList is a NullPrincipal.

It is incorrect to overwrite the existing
ContentBlockingAllowListPrincipal when doing a recomputaion in the
Document. The ContentBlockingAllowListPrincipal in the document should
be updated in Document::SetPrincipals().

Depends on D65404

Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98035072dea9 Part 1: Recompute the ContentBlockingAllowListPrincipal if this is a top-level load. r=dimi,Ehsan https://hg.mozilla.org/integration/autoland/rev/396f55ee4672 Part 2: Don't overwrite the existing ContentBlockingAllowListPrincipal when doing a recomputation in the Document. r=dimi,Ehsan
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: