Closed
Bug 1027458
Opened 10 years ago
Closed 10 years ago
On an individual app .ondownloaderror (after a downloadCancel) emits both DOWNLOAD_CANCELED and NETWORK_ERROR
Categories
(Core Graveyard :: DOM: Apps, defect)
Core Graveyard
DOM: Apps
Tracking
(blocking-b2g:2.0+, firefox31 wontfix, firefox32 fixed, firefox33 fixed, b2g-v2.0 fixed, b2g-v2.1 fixed)
People
(Reporter: jlal, Assigned: jlal)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
jlal
:
review+
|
Details | Diff | Splinter Review |
https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#3467 is effectively dead code (unless I am really missing something) at somepoint between v1.2 and now we removed the addition of the flag but this logic is still needed so we can correctly detect when an app download was canceled vs some other network error
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jlal
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8442652 [details] [diff] [review]
Correctly cleanup after canceling a mozapp download
I came up with this from a combination of reading what the offline (app cache) case does and digging up the past functionality from v1.2.
Attachment #8442652 -
Flags: feedback?(fabrice)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8442654 -
Flags: feedback?(fabrice)
Assignee | ||
Updated•10 years ago
|
Attachment #8442652 -
Attachment is obsolete: true
Attachment #8442652 -
Flags: feedback?(fabrice)
Comment 5•10 years ago
|
||
Comment on attachment 8442654 [details] [diff] [review]
Correctly cleanup after canceling a mozapp download
Review of attachment 8442654 [details] [diff] [review]:
-----------------------------------------------------------------
Hm... so I'm pretty sure we had something similar in the past and ferjm removed it. CC-ing fernando.
::: dom/apps/src/Webapps.jsm
@@ +2779,5 @@
>
> + // save the current state of the app to handle cases where we may be
> + // retrying a past download.
> + yield DOMApplicationRegistry._saveApps();
> + yield DOMApplicationRegistry.broadcastMessage("Webapps:UpdateState", {
no yield here.
Attachment #8442654 -
Flags: feedback?(fabrice) → feedback+
Updated•10 years ago
|
Flags: needinfo?(ferjmoreno)
Updated•10 years ago
|
QA Whiteboard: [VH-FL-blocking+][VH-FC-blocking+]
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
More complete try run https://tbpl.mozilla.org/?tree=Try&rev=8e8352871d35 (looks like some of the apps tests do not run on b2g?)
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8443659 -
Flags: review?(fabrice)
Assignee | ||
Updated•10 years ago
|
Attachment #8442654 -
Attachment is obsolete: true
Comment 9•10 years ago
|
||
Comment on attachment 8443659 [details] [diff] [review]
Correctly cleanup after canceling a mozapp download
Review of attachment 8443659 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit fixed.
::: dom/apps/src/Webapps.jsm
@@ +2776,5 @@
>
> // initialize the progress to 0 right now
> oldApp.progress = 0;
>
> + // save the current state of the app to handle cases where we may be
nit: Save
Attachment #8443659 -
Flags: review?(fabrice) → review+
Updated•10 years ago
|
Flags: needinfo?(ferjmoreno)
Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8443659 -
Attachment is obsolete: true
Attachment #8443776 -
Flags: review?(fabrice)
Assignee | ||
Comment 11•10 years ago
|
||
Comment on attachment 8443776 [details] [diff] [review]
Correctly cleanup after canceling a mozapp download
carying r+ over from fabrice... this fixes the review comment.
Attachment #8443776 -
Flags: review?(fabrice) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 12•10 years ago
|
||
Pushed to b2g-inbound (with fix to the commit message with r=fabrice).
https://hg.mozilla.org/integration/b2g-inbound/rev/59fda077a2ab
Status: NEW → ASSIGNED
Keywords: checkin-needed
OS: Mac OS X → All
Hardware: x86 → All
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8443776 [details] [diff] [review]
Correctly cleanup after canceling a mozapp download
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined: Not able to correctly resume app download in gaia (FxOS)
Testing completed (on m-c, etc.): tests written (live in gaia)
Risk to taking this patch (and alternatives if risky): low risk mostly adding back some removed code
String or IDL/UUID changes made by this patch: none
Attachment #8443776 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
blocking-b2g: 2.0? → 2.0+
Updated•10 years ago
|
Attachment #8443776 -
Flags: approval-mozilla-aurora?
Comment 16•10 years ago
|
||
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
status-firefox31:
--- → wontfix
status-firefox32:
--- → fixed
status-firefox33:
--- → fixed
Comment 17•10 years ago
|
||
Testing follow-up landed: https://github.com/mozilla-b2g/gaia/commit/952b1e06fdb6eeade76f28aed78ee9eb070876e1
Comment 18•10 years ago
|
||
Sorry, that follow-up was meant for the blocking bug, bug 1023950.
Flags: in-moztrap-
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•