rem: var domhtmldoc = GetCurrentEditor().document.QueryInterface(Components.interfaces.nsIDOMHTMLDocument);     return Components.lookupMethod(domhtmldoc, 'title').call(domhtmldoc); 
add: return new XPCNativeWrapper(GetCurrentEditor().document, "title").title; 
context: function GetDocumentTitle(){  try {    var domhtmldoc = GetCurrentEditor().document.QueryInterface(Components.interfaces.nsIDOMHTMLDocument);        // See bug 77315 for details on this wacky code!     // (It seems DOM hasn't consistently returned title string,     /// but "[xpconnect wrapped HTMLObjectElement]" instead! )    return Components.lookupMethod(domhtmldoc, 'title').call(domhtmldoc);  } catch (e) {}  return "";}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/55280fbc5edc2c81f2e8d44aa78815fe454bdf91/editorUtilities.js/buggy/editor/ui/composer/content/editorUtilities.js