mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 809948 - [Webapps] Check for enough device storage before starting app download. Follow-up; r=fabrice
This commit is contained in:
parent
ef2d115b6c
commit
086f792033
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user