Closed Bug 813575 Opened 13 years ago Closed 13 years ago

[Apps] When canceling the download of a packaged app, the attribute downloading is still set to true

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

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

RESOLVED FIXED
mozilla20
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed
firefox20 --- fixed

People

(Reporter: arcturus, Assigned: ferjm)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

When the download is canceled, the attribute 'downloading'continue being set to 'true' which IMHO should change to 'false'
blocking-kilimanjaro: --- → ?
blocking-basecamp: --- → ?
blocking-kilimanjaro: ? → ---
We do set downloading to false at https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#761, which is then turned into a downloaderror at https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.js#593 I'll build a large package to get a chance to cancel the download and see what happens - my current tests apps download too fast.
(In reply to Fabrice Desré [:fabrice] from comment #1) > > I'll build a large package to get a chance to cancel the download and see > what happens - my current tests apps download too fast. You can try here: http://owapps.cloudfoundry.com Is an nodejs app that we created to testing in the different environments. You can run it local, the project is in github: https://github.com/ferjm/apptester Thanks.
Attached patch v1Splinter Review
Assignee: nobody → ferjmoreno
Attachment #683962 - Flags: review?(fabrice)
Attachment #683962 - Attachment is patch: true
There were two different issues here: 1. 'aApp' was undefined at [1], so the message was not being sent. 2. Once 1. was fixed, we ended up with two different 'ondownloaderror' events being fired (one of them with 'downloading' true). The first one requested from 'cancelDownload()' and the other requested by the handler[2] of the network error caused by the cancellation of the HTTP channel[3]. [1] https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#767 [2] https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1381 [3] https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#756
Attachment #683962 - Flags: review?(fabrice) → review+
blocking-basecamp: ? → +
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Whiteboard: [qa-]
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: