Bug 2003449 Comment 29 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Vincent Hilla [:vhilla] from comment #28)
> Perhaps an issue can be reproduced already before bug 543435 here. I wonder what the iframe initially has as partitioned principal, before the async `about:blank` load completes.

Yes: https://pernos.co/debug/bdOfxvW_-EJAuqSMVJ6-Zw/index.html
- `nsDocShell::EnsureDocumentViewer` creates an initial viewer for the `about:blank` iframe. And `partitionedPrincipal` has no `partitionKey`.
- For the async `about:blank`, `Document::Reset` gets a partitioned principal that does have a `partitionKey`.
(In reply to Vincent Hilla [:vhilla] from comment #28)
> Perhaps an issue can be reproduced already before bug 543435 here. I wonder what the iframe initially has as partitioned principal, before the async `about:blank` load completes.

Yes: https://pernos.co/debug/bdOfxvW_-EJAuqSMVJ6-Zw/index.html
- `nsDocShell::EnsureDocumentViewer` creates an initial viewer for the `about:blank` iframe. And `partitionedPrincipal` has no `partitionKey`.
- For the async `about:blank`, `Document::Reset` gets a partitioned principal that does have a `partitionKey`.

Perhaps we should track this as a separate issue. We can fix the use of `aLoadState->PartitionedPrincipalToInherit()` anyway.

Back to Bug 2003449 Comment 29