rem: var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); 
add: var prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); 
context: function onAlertLoad(){  // read out our initial settings from prefs.  try   {    var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService();    prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);    var prefBranch = prefService.getBranch(null);    gSlideTime = prefBranch.getIntPref("alerts.slideIncrementTime");    gOpenTime = prefBranch.getIntPref("alerts.totalOpenTime");  } catch (ex) {}    // bogus call to make sure the window is moved offscreen until we are ready for it.  resizeAlert(true);  // if we aren't waiting to fetch preview text, then go ahead and   // start showing the alert.  if (!gPendingPreviewFetchRequests)    setTimeout(showAlert, 0); // let the JS thread unwind, to give layout                               // a chance to recompute the styles and widths for our alert text.}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/9962a900041bd4fe467ad1bb8d0fdaaff7fd9a3e/newmailalert.js/buggy/mail/base/content/newmailalert.js