Open Bug 1585066 Opened 4 months ago Updated 2 months ago

Fix usage of nsIDocShellTreeItem in MaybeDowngradePrincipal

Categories

(Core :: DOM: Navigation, defect, P2)

defect

Tracking

()

Fission Milestone M6

People

(Reporter: djvj, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

(Whiteboard: [rm-docshell-tree-item:sync-state])

https://searchfox.org/mozilla-central/rev/153feabebc2d13bb4c29ef8adf104ec1ebd246ae/dom/base/Document.cpp#2561

Called (two levels deep) from Document::StartDocumentLoad. This queries the principal of the parent document for whether it's a system principal. If the parent is NOT a system principal, then the a downgraded principal is returned.

This seems like a good candidate for a flag on the BrowsingContext. Knowing whether your parent document (or some ancestor) has the system principal or not should not be sensitive.

Fission Milestone: --- → M5
Priority: -- → P2
Depends on: 1587436
Whiteboard: [rm-docshell-tree-item:sync-state]
Fission Milestone: M5 → Future

Kannan says replacing nsIDocShellTreeItem calls should block enabling Fission in Nightly (M6).

Fission Milestone: Future → M6
You need to log in before you can comment on or make changes to this bug.