rem: var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Components.interfaces.nsIBrowserHistory); globalHistory.removeAllPages(); 
add: try { var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Components.interfaces.nsIBrowserHistory); globalHistory.removeAllPages(); } catch (e) { } 
context: function sanitizeAll(){    // Cache     var classID = Components.classes["@mozilla.org/network/cache-service;1"];    var cacheService = classID.getService(Components.interfaces.nsICacheService);    cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY);    cacheService.evictEntries(Components.interfaces.nsICache.STORE_ON_DISK);        // Autocomplete    var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"]                                  .getService(Components.interfaces.nsIBrowserHistory);    globalHistory.removeAllPages();             try     {       var os = Components.classes["@mozilla.org/observer-service;1"]                          .getService(Components.interfaces.nsIObserverService);        os.notifyObservers(null, "browser:purge-session-history", "");    } catch (e) { }        document.getElementById("privacySanitize").disabled=true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/9385fb64728da2465fc11207e96a307e47f67486/preferences.js/buggy/minimo/chrome/content/preferences/preferences.js