rem: if( aDataObject.useDocFonts != undefined ) 
add: if( "useDocFonts" in aDataObject && aDataObject.useDocFonts != undefined ) 
context: function SetFields( aDataObject )  {    languageData = aDataObject.languageData ? aDataObject.languageData : languageData ;    currentLanguage = aDataObject.currentLanguage ? aDataObject.currentLanguage : null ;    var lists = ["selectLangs", "proportionalFont"];    var prefvalue;        for( var i = 0; i < lists.length; i++ )      {        var element = document.getElementById( lists[i] );        if( aDataObject.dataEls )          {            element.selectedItem = element.getElementsByAttribute( "value", aDataObject.dataEls[ lists[i] ].value )[0];          }        else          {            var prefstring = element.getAttribute( "prefstring" );            var preftype = element.getAttribute( "preftype" );            if( prefstring && preftype )              {                var prefvalue = parent.hPrefWindow.getPref( preftype, prefstring );                element.selectedItem = element.getElementsByAttribute( "value", prefvalue )[0];              }          }      }    var screenResolution = document.getElementById( "screenResolution" );    var resolution;        if( aDataObject.fontDPI )      {        resolution = aDataObject.fontDPI;      }    else      {        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 );        if ( parent.hPrefWindow.getPrefIsLocked( "browser.display.screen_resolution" ) ) {        screenResolution.disabled = true;    }    var useDocFontsCheckbox = document.getElementById( "browserUseDocumentFonts" );    if( aDataObject.useDocFonts != undefined )      useDocFontsCheckbox.checked = aDataObject.useDocFonts ? true : false;    else      {        prefvalue = parent.hPrefWindow.getPref( "int", "browser.display.use_document_fonts" );        if( prefvalue != "!/!ERROR_UNDEFINED_PREF!/!" )          useDocFontsCheckbox.checked = prefvalue ? true : false ;      }    if ( parent.hPrefWindow.getPrefIsLocked( "browser.display.use_document_fonts" ) ) {        useDocFontsCheckbox.disabled = true;    }  }
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