Recompute ContentBlockingAllowListPrincipal if it is a top-level load
Categories
(Core :: Privacy: Anti-Tracking, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox75 | --- | fixed |
People
(Reporter: dimi, Assigned: timhuang)
References
Details
Attachments
(2 files)
See Bug 1612378 Comment 6 for details.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
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.
| Assignee | ||
Comment 2•6 years ago
|
||
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
Comment 4•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/98035072dea9
https://hg.mozilla.org/mozilla-central/rev/396f55ee4672
Description
•