User:Ddahl/findXmlNotes

From MozillaWiki
Jump to: navigation, search

2009-10-12 - 2009-10-16

Using gdb to follow all relevant code paths before and after calls to find

Examining how the document is generated in nsXMLPrettyPrinter

Where is the document that is generated by the XMLPrettyPrinter? It appears the "raw" XML document is an nsXMLDocument, but trying to queryInterface to nsIDOMElement and set focus on it returns an NS_NOINTERFACE error.

As per Rob Strong's suggestion: Going back to examine the differences between nsTypeAheadFind before and after the focus rewrite...

It seems there was a refactoring of nsIEventStateManager as well. The main differences between the two files have to do with calling esm->GetFocusedContent and esm->MoveCaretToFocus(), which seems to be handled by the new nsFocusManager.