mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 04:05:49 +00:00
0257791053
is mentioned to mention a contractid, including in identifiers. r=warren
25 lines
896 B
JavaScript
25 lines
896 B
JavaScript
function prefCacheSelectFolder()
|
|
{
|
|
bundle = srGetStrBundle("chrome://communicator/locale/pref/prefutilities.properties");
|
|
var folderField = document.getElementById("browserCacheDirectory");
|
|
var file = getFileOrFolderSpec( bundle.GetStringFromName("cachefolder"), true );
|
|
if ( file && file != -1 )
|
|
folderField.value = file.unicodePath;
|
|
}
|
|
|
|
function prefClearMemCache()
|
|
{
|
|
dump("prefClearMemCache \n");
|
|
var cache = Components.classes['@mozilla.org/network/cache;1?name=manager'].getService();
|
|
var cacheService = cache.QueryInterface( Components.interfaces.nsINetDataCacheManager);
|
|
cacheService.clear( 2 );
|
|
}
|
|
|
|
function prefClearDiskCache()
|
|
{
|
|
dump("prefClearDiskCache \n");
|
|
var cache = Components.classes['@mozilla.org/network/cache;1?name=manager'].getService();
|
|
var cacheService = cache.QueryInterface( Components.interfaces.nsINetDataCacheManager);
|
|
cacheService.clear( 12 );
|
|
}
|