rem: title = aDocShell.document.title || url; docCharset = aDocShell.document.characterSet; 
add: var doc = new XPCNativeWrapper(aDocShell.document, "title", "characterSet"); title = doc.title || url; docCharset = doc.characterSet; 
context:   addBookmarkForBrowser: function (aDocShell, aShowDialog)  {    // Bug 52536: We obtain the URL and title from the nsIWebNavigation     //            associated with a <browser/> rather than from a DOMWindow.    //            This is because when a full page plugin is loaded, there is    //            no DOMWindow (?) but information about the loaded document    //            may still be obtained from the webNavigation.     var url = aDocShell.currentURI.spec;    var title, docCharset = null;    try {      title = aDocShell.document.title || url;      docCharset = aDocShell.document.characterSet;    }    catch (e) {      title = url;    }    this.addBookmark(url, title, docCharset, aShowDialog);  }, 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f8bc1001642b48de9a02f3f1e0d52e3f454c4cbd/bookmarks.js/clean/xpfe/components/bookmarks/resources/bookmarks.js