Open Bug 1585077 Opened 5 years ago Updated 2 years ago

Remove usage of nsIDocShellTreeItem in mozilla::dom::IsInActiveTab

Categories

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

defect

Tracking

()

Fission Milestone Future

People

(Reporter: djvj, Unassigned)

References

(Blocks 2 open bugs)

Details

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

https://searchfox.org/mozilla-central/rev/45f30e1d19bde27bf07e47a0a5dd0962dd27ba18/dom/base/Document.cpp#13474

This code checks to see if the given document is in an active tab, by comparing the window of the root item to the given window. This should probably just change to have BrowsingContext keep an updated field indicating which tabs are active or not. This field should not need to be synchronized between processes often as it should only happen when tab visibility changes.

Fission Milestone: --- → M5
Priority: -- → P2
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

Since bug 1618102, nsIDocShellTreeItem is used on the parent-process code path only in this function.

Summary: Fix usage of nsIDocShellTreeItem in mozilla::dom::IsInActiveTab → Audit usage of nsIDocShellTreeItem in mozilla::dom::IsInActiveTab

Auditing whether this use of nsIDocShellTreeItem breaks when Fission is enabled blocks Fission Nightly.

Fission Milestone: M6 → M6b

This should work fine when Fission is enabled. Could be written without nsIDocShellTreeItem using bug 1633723.

(In reply to Henri Sivonen (:hsivonen) from comment #4)

This should work fine when Fission is enabled. Could be written without nsIDocShellTreeItem using bug 1633723.

Thanks. In that case, this bug doesn't need to block shipping Fission MVP. I'll move this bug to a future milestone when we remove the nsIDocShellTreeItem interface entirely (someday).

Fission Milestone: M6b → Future
Summary: Audit usage of nsIDocShellTreeItem in mozilla::dom::IsInActiveTab → Remove usage of nsIDocShellTreeItem in mozilla::dom::IsInActiveTab
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.