rem: if (window == wnd) wnd = window.content; 
add: if (window == wnd) wnd = window._content; 
context:   function BrowserAddBookmark(url,title)  {    var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();    var wnd = document.commandDispatcher.focusedWindow;    if (window == wnd) wnd = window.content;    var docCharset = wnd.document.characterSet;    bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);    if ((title == null) || (title == ""))    {    	title = url;    }    bmks.AddBookmark(url, title, bmks.BOOKMARK_DEFAULT_TYPE, docCharset);    dump("BrowserAddBookmark: " + docCharset + "\n");  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/03ea82871ae0d2b0e52e9f402c89829c8a4feb6a/navigator.js/clean/xpfe/browser/resources/content/navigator.js