Closed Bug 1597398 Opened 5 years ago Closed 3 years ago

Fix uses of nsHTMLDocument::StartDocumentLoad in dom/html/nsHTMLDocument.cpp

Categories

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

defect

Tracking

()

RESOLVED WORKSFORME
Fission Milestone M7

People

(Reporter: djvj, Unassigned)

References

Details

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

In file dom/html/nsHTMLDocument.cpp

Uses DocShell tree to get parent item.

Some of the code around this seems to have been fixed for Fission, e.g. the following fix within the call to Document::StartDocumentLoad https://bugzilla.mozilla.org/show_bug.cgi?id=1555050

Obtains the ContentViewer from either the current DocShell or the parent DocShell.

Users of Content-Viewer are conditionalized, and lack of one won’t crash. Might lead to failures in specific tests when the docshell content-viewer is null, and its parent is out of process.

Uses content-viewer exactly twice, here:

Fission Milestone: --- → M6
Priority: -- → P3

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

Fission Milestone: M6 → M6b

Edge case for maybe affecting real world usage.

Fission Milestone: M6b → M7

Nika needinfoed me in the bug that was duplicated against this one. Replying here.

AFAICT, the only remaining use of "hint charset" is holding the encoding that the parser requested a switch to across a parser-triggered encoding reload:
https://searchfox.org/mozilla-central/source/docshell/base/nsDocShell.cpp#12205

Having this on the content viewer is unlikely to be ideal. However, we should have some mechanism for propagating the encoding into the new document load initiation when the parser asks for an encoding reload.

(Also, "hint charset" is a terribly underdescriptive name for this.)

I don't think the hint charset is likely to cause us issues across process boundaries anymore, so I'm going to close this for now.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.