rem: function BrowserAddBookmark(url,title) { var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); var wnd = document.commandDispatcher.focusedWindow; if (window == wnd) wnd = window._content; var docCharset = wnd.document.characterSet; 
add: function BrowserAddBookmark(url, title) { if (!title) title = url; 
context:   function BrowserAddBookmark(url,title)  {    var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].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);    debug("BrowserAddBookmark: " + docCharset + "\n");  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cd80143aee6dbfef87e3bdbb3948780e5f478fca/navigator.js/buggy/suite/browser/navigator.js