Kenny YU wrote: > In AppShell, the execution calls LoadURI which then lead into > DocShell.... and in CreateContentViewer method of docshell, a content > viewer (document viewer) is created.
Yep. Which hands the load to nsURILoader, which starts the necko load going. When the OnStartRequest comes in from Necko, the URILoader dispatches the load to the right place. If that place is a docshell, nsDocShell::CreateContentViewer will be called, as you noticed. Note that this method has a nsIStreamListener out param. This listener will receive the data from necko. In the case of HTML documents, that listener is the parser (created in StartDocumentLoad(), as you also noticed). -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

