Bug 809948 - [Webapps] Check for enough device storage before starting app download. Follow-up; r=fabrice

This commit is contained in:
Fernando Jiménez 2012-11-16 21:16:46 +01:00
parent ef2d115b6c
commit 086f792033

View File

@ -1430,9 +1430,8 @@ this.DOMApplicationRegistry = {
});
};
let browser = Services.wm.getMostRecentWindow("navigator:browser");
let deviceStorage = browser.getContentWindow().navigator
.getDeviceStorage("apps");
let deviceStorage = Services.wm.getMostRecentWindow("navigator:browser")
.navigator.getDeviceStorage("apps");
let req = deviceStorage.stat();
req.onsuccess = req.onerror = function statResult(e) {
// Even if we could not retrieve the device storage free space, we try