rem:  try { var prefsService = Components.classes["@mozilla.org/preferences;1"]; if (prefsService) prefsService = prefsService.getService(); if (prefsService) gPrefs = prefsService.QueryInterface(Components.interfaces.nsIPref); 
add:  try { var prefsService = Components.classes["@mozilla.org/preferences;1"]; if (prefsService) prefsService = prefsService.getService(); if (prefsService) gPrefs = prefsService.QueryInterface(Components.interfaces.nsIPref); 
context: function GetPrefsService(){   // Store the prefs object   try {        var prefsService = Components.classes["@mozilla.org/preferences;1"];        if (prefsService)        prefsService = prefsService.getService();        if (prefsService)        gPrefs = prefsService.QueryInterface(Components.interfaces.nsIPref);        if (!gPrefs)        dump("failed to get prefs service!\n");   }   catch(ex) {        dump("failed to get prefs service!\n");   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4ef34e1cf9a252ce2524634b9d502992e1411965/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js