Open Bug 2010596 Opened 6 months ago Updated 5 months ago

Transient / Initial documents sometimes have the wrong partitioned principal

Categories

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

defect

Tracking

()

People

(Reporter: vhilla, Unassigned)

References

Details

The partitioned principal is currently determined in Document::Reset through GetChannelResultPrincipals which uses StoragePrincipalHelper::ChooseOriginAttributes. A consequence of that last method is that an about:blank iframe might have a different partitioned principal than it's embedder.

But non-parser generated about:blank documents don't use Document::Reset and just inherit the partitioned principal. Before bug 543435, this happened in nsDocShell::EnsureDocumentViewer and now it's in nsFrameLoader::MaybeCreateDocShell. But 543435 probably made it worse by changing initial navigations to about:blank to keep the non-parser generated about:blank around.

This can be observed, for example (bug 2003449 comment 28), if <html><iframe></iframe></html> is loaded from a file:// URI.

Component: DOM: Navigation → Privacy: Anti-Tracking
See Also: → 2003449
See Also: → 2006265
See Also: → 2004172
You need to log in before you can comment on or make changes to this bug.