Open Bug 1587403 Opened 4 months ago Updated 1 month ago

Fix usage of nsIDocShellTreeItem in nsContentUtils::FindPresShellForDocument

Categories

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

defect

Tracking

()

Fission Milestone M6

People

(Reporter: djvj, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [rm-docshell-tree-item:hard])

https://searchfox.org/mozilla-central/rev/7cc0f0e89cb40e43bf5c96906f13d44705401042/dom/base/nsContentUtils.cpp#6123

The primary use is WidgetForDocument, which seems to be primarily used by layout code and rendering code.

This seems like a bit of a difficult fix. The logic walks up the docshell tree and returns the first PresShell that it finds, which may be out of process.

All layout code that uses this needs to be changed.

Whiteboard: [rm-docshell-tree-item:hard]
Fission Milestone: --- → M5
Priority: -- → P2
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.