Closed Bug 1572852 Opened 5 years ago Closed 4 years ago

Fix usage of nsIDocShellTreeItem in LogDocShellTree

Categories

(Core :: Disability Access APIs, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
Fission Milestone Future
Tracking Status
firefox78 --- fixed

People

(Reporter: djvj, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

In accessible/base/Logging.cpp, within the LogDocShellTree function (https://searchfox.org/mozilla-central/source/accessible/base/Logging.cpp#120):

This function calls GetInProcessParent() and GetInProcessRootTreeItem() on nsIDocShellTreeItem. The result simply logged via printf.

This logging will be incorrect post-fission. The parent may now be null when it is out-of-process, and the in-process root may not be the actual root.

Since the printf dumps the raw pointers, there's not much meaning to the actual dumped line. Changing the printf message to indicate that this is showing in-process TreeItems should be sufficient.

Component: DOM: Core & HTML → Disability Access APIs
Fission Milestone: --- → M5
Priority: -- → P2
Whiteboard: [rm-docshell-tree-item:simple]
Fission Milestone: M5 → Future

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

Fission Milestone: Future → M6
Blocks: a11y-fission

This method is used only for a11y development, and is not called anywhere unless accessibility logging is enabled.

As this doesn't directly impact the functionality of firefox with fission enabled, moving to future.

Fission Milestone: M6 → Future
Priority: P2 → P3

For an OOP iframe, the logged parent will be null and the logged root won't be the real top level document.
This is just the way things are and this might still be useful info sometimes, so we still log it, but make it clear in the log message that it's about the in-process tree.

Assignee: nobody → jteh
Status: NEW → ASSIGNED
Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/553af70f2690
a11y::Logging::LogDocShellTree: Make it clear that this is in-process DocShell tree info. r=yzen
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: