rem: var windowManager = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] 
add: var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"] 
context: function BrowserEditBookmarks(){  // Use a single sidebar bookmarks dialog  var windowManager = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"]                                .getService(Components.interfaces.nsIWindowMediator);  var bookmarksWindow = windowManager.getMostRecentWindow("bookmarks:manager");  if (bookmarksWindow) {    bookmarksWindow.focus();  } else {    // while disabled, don't open new bookmarks window    if (!gDisableBookmarks) {      gDisableBookmarks = true;      open("chrome://communicator/content/bookmarks/bookmarks.xul", "_blank",        "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar");      setTimeout(enableBookmarks, 2000);    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/58ad7ad612cf759624c52f8d3473225eb3ce4026/navigator.js/buggy/xpfe/browser/resources/content/navigator.js