forked from mirrors/gecko-dev
Backed out changeset 36ff321fc1b8 (bug 1415342) Backed out changeset d7e30b8499cd (bug 1415342) Backed out changeset 4913f1571ece (bug 1415342) Backed out changeset 25d665693e38 (bug 1415342) --HG-- rename : toolkit/modules/offlineAppCache.jsm => browser/modules/offlineAppCache.jsm
16 lines
542 B
JavaScript
16 lines
542 B
JavaScript
/* 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/. */
|
|
|
|
var EXPORTED_SYMBOLS = ["OfflineAppCacheHelper"];
|
|
|
|
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
|
|
var OfflineAppCacheHelper = {
|
|
clear() {
|
|
var appCacheStorage = Services.cache2.appCacheStorage(Services.loadContextInfo.default, null);
|
|
try {
|
|
appCacheStorage.asyncEvictStorage(null);
|
|
} catch (er) {}
|
|
}
|
|
};
|