rem: document.documentElement.openSubDialog("chrome: 
add: document.documentElement.openSubDialog("chrome: 
context:   changeScreenResolution: function (aMenulist)  {    var userResolution = document.getElementById("userResolution");    var screenResolution = document.getElementById("screenResolution");    var lastSelected = screenResolution.getElementsByAttribute("lastSelected", "true")    if (lastSelected.length > 0)       lastSelected = lastSelected[0];    else {      var preference = document.getElementById("browser.display.screen_resolution");      lastSelected = screenResolution.getElementsByAttribute("value", preference.value);      if (lastSelected.length > 0)        lastSelected = lastSelected[0];      else        lastSelected = document.getElementById("defaultResolution");    }    if (aMenulist.selectedItem.value == "choose") {      var rv = { newdpi: -1 };      document.documentElement.openSubDialog("chrome://browser/content/preferences/fontscaling.xul",                                             "", rv);      if (rv.newdpi != -1) {        this._setResolution(rv.newdpi);        lastSelected.removeAttribute("lastSelected");        screenResolution.selectedItem.setAttribute("lastSelected", "true");      }      else        screenResolution.selectedItem = lastSelected;    }    else if (!(screenResolution.value == userResolution.value)) {      // User has selected one of the hard-coded resolutions      userResolution.hidden = true;      lastSelected.removeAttribute("lastSelected");      screenResolution.selectedItem.setAttribute("lastSelected", "true");    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1d6ce30db1127c8d4c5476b9b17e178ca9c2b9f9/fonts.js/buggy/browser/components/preferences/fonts.js