Open Bug 1597466 Opened 2 months ago Updated 28 days ago

Fix uses of nsDocumentViewer::SetIsPrintingInDocShellTree in layout/base/nsDocumentViewer.cpp


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




Fission Milestone M6


(Reporter: djvj, Unassigned)


(Blocks 1 open bug)


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

In file layout/base/nsDocumentViewer.cpp

Finds the same-type root (using explicit loop), to call SetIsPrinting() on it.

Recursively calls itself on all descendant DocShells in tree.

Generaly called during coarse-grained situations like starting, stopping, and checking print timings.

Sync IPC should be fine here.

Async is possible - the print logic is mostly asynchronous just a few call levels up.

  • Architecture of printing code (caller code and above) is already in terms of issuing some commands and then looping on a timer to check on them.
  • Should be possible to issue async “SetIsPrint” to chrome process and loop on timer waiting for result, like with everything else.

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

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