2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2016-02-04 01:22:33 +03:00
|
|
|
|
2012-10-31 20:13:28 +04:00
|
|
|
this.EXPORTED_SYMBOLS = ["OfflineAppCacheHelper"];
|
2011-12-17 02:36:09 +04:00
|
|
|
|
2018-01-31 20:46:46 +03:00
|
|
|
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
2013-09-20 13:11:25 +04:00
|
|
|
|
2012-10-31 20:13:28 +04:00
|
|
|
this.OfflineAppCacheHelper = {
|
2016-12-30 02:34:54 +03:00
|
|
|
clear() {
|
2018-02-01 13:48:00 +03:00
|
|
|
var appCacheStorage = Services.cache2.appCacheStorage(Services.loadContextInfo.default, null);
|
2011-12-17 02:36:09 +04:00
|
|
|
try {
|
2013-09-20 13:11:25 +04:00
|
|
|
appCacheStorage.asyncEvictStorage(null);
|
2016-08-04 10:28:58 +03:00
|
|
|
} catch (er) {}
|
2011-12-17 02:36:09 +04:00
|
|
|
}
|
|
|
|
};
|