Open Bug 1704574 Opened 29 days ago Updated 7 days ago

[SHIP] Fix the `documentHasChildNodes` value for about:blank documents


(Firefox :: Session Restore, defect)




Fission Milestone M7a


(Reporter: kashav, Assigned: kashav)


(Blocks 1 open bug)


It's used to cache the document body that is eventually passed to SessionHistory.collectFromParent(), and used here. For the content-history case, we use the content document body, but here we're passing the body of the browser element, which is wrong.

We'll probably have to make it possible for the parent to know if the content body has child nodes.

Note that the patches for bug 1700963 will remove this property from the listener, and stop passing a body parameter to SessionHistory.collectFromParent(). We'll use this bug to correctly add the hasChildNodes() behavior.

Summary: Remove the _lastKnownBody property of the SessionStore SHistoryListener → [SHIP] Fix the `documentHasChildNodes` value for about:blank documents
You need to log in before you can comment on or make changes to this bug.