Closed Bug 820366 Opened 12 years ago Closed 12 years ago

INSUFFICIENT_STORAGE error is not triggered correctly *at restart*

Categories

(Core Graveyard :: DOM: Apps, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)

VERIFIED FIXED
mozilla20
blocking-basecamp +
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
b2g18 --- fixed

People

(Reporter: julienw, Assigned: ferjm)

Details

Attachments

(1 file)

When restarting a download on a phone with low storage space, there is no error dialog.

STR:
* push a 2395140 kBytes (about 2.3 GB) file in /data
* "adb shell df /data" should report less than 8M free space (eg 6M)
* go to http://owapps.cloudfoundry.com with the browser
* install "big packaged app"
* accept the installation
* we get a dialog saying that there is not enough storage to install this app
* an icon is on the homescreen
* tap on the icon
* accept the download

Expected :
* we get a dialog saying that there is not enough storage to install this app

Actual :
* the download begins, the whole zip is downloaded
* there is a DOWNLOAD_ERROR because the zip can't be installed


logcat says :
I/Gecko   (  109): -*-*- Webapps.jsm : Free storage: 5083136. Download size: undefined

So it seems it doesn't find the download size correctly.
Assignee: nobody → ferjmoreno
Summary: UNSUFFICIENT_STORAGE error is not triggered correctly at restart → INSUFFICIENT_STORAGE error is not triggered correctly *at restart*
Attached patch v1Splinter Review
Attachment #690921 - Flags: review?(fabrice)
Attachment #690921 - Flags: review?(fabrice) → review+
blocking-basecamp: ? → +
https://hg.mozilla.org/mozilla-central/rev/89ad76a08a74
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Keywords: verifyme
QA Contact: jsmith
Verified today doing some low space testing with appcache preloading for hosted apps and packaged apps.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: