rem: prefvalue = parent.hPrefWindow.getPref( "int", "browser.display.screen_resolution" ); 
add: var prefvalue = parent.hPrefWindow.getPref( "int", "browser.display.screen_resolution" ); 
context: function Startup()  {    variableSize = document.getElementById( "sizeVar" );    fixedSize    = document.getElementById( "sizeMono" );    minSize      = document.getElementById( "minSize" );    languageList = document.getElementById( "selectLangs" );    gPrefutilitiesBundle = document.getElementById("bundle_prefutilities");    // register our ok callback function    parent.hPrefWindow.registerOKCallbackFunc( saveFontPrefs );    // eventually we should detect the default language and select it by default    selectLanguage();        // Allow user to ask the OS for a DPI if we are under X    if (navigator.appVersion.indexOf("X11") != -1)      {         document.getElementById( "systemResolution" ).removeAttribute( "hidden" );       }        // Set up the labels for the standard issue resolutions    var resolution;    resolution = document.getElementById( "screenResolution" );    // Set an attribute on the selected resolution item so we can fall back on    // it if an invalid selection is made (select "Other...", hit Cancel)    resolution.selectedItem.setAttribute("current", "true");    var dpi = resolution.getAttribute( "dpi" );    resolution = document.getElementById( "otherResolution" );    resolution.setAttribute( "value", "72" );    resolution.setAttribute( "label", dpi.replace(/\$val/, "72" ) );    resolution = document.getElementById( "defaultResolution" );    resolution.setAttribute( "value", "96" );    resolution.setAttribute( "label", dpi.replace(/\$val/, "96" ) );    // Get the pref and set up the dialog appropriately. Startup is called    // after SetFields so we can't rely on that call to do the business.    prefvalue = parent.hPrefWindow.getPref( "int", "browser.display.screen_resolution" );    if( prefvalue != "!/!ERROR_UNDEFINED_PREF!/!" )        resolution = prefvalue;    else        resolution = 96; // If it all goes horribly wrong, fall back on 96.        setResolution( resolution );    // This prefstring is a contrived pref whose sole purpose is to lock some    // elements in this panel.  The value of the pref is not used and does not matter.    if ( parent.hPrefWindow.getPrefIsLocked( "browser.display.languageList" ) ) {      disableAllFontElements();    }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e774059904a47d9f619d269b6b4d3119ae88d797/pref-fonts.js/clean/xpfe/components/prefwindow/resources/content/pref-fonts.js