rem: var wm = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] 
add: var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] 
context: function openUrl(aUrl) {  var navWindow;  // if this is a browser window, just use it  if ("document" in top) {    var possibleNavigator = top.document.getElementById("main-window");    if (possibleNavigator &&        possibleNavigator.getAttribute("windowtype") == "navigator:browser")      navWindow = top;  }  // if not, get the most recently used browser window  if (!navWindow) {    try {      var wm = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"]        .getService(Components.interfaces.nsIWindowMediator);      navWindow = wm.getMostRecentWindow("navigator:browser");    }    catch (ex) { }  }  if (navWindow) {    if ("delayedOpenTab" in navWindow)      navWindow.delayedOpenTab(aUrl);    else if ("loadURI" in navWindow)      navWindow.loadURI(aUrl);    else      navWindow._content.location.href = aUrl;  }  // if all else fails, open a new window  else {    window.open(aUrl);  }}
meta: 1647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1647/5092238b086729dbae0685de38877f1919a15886/utility.js/buggy/src/tagzilla/content/utility.js