Closed
Bug 828267
Opened 12 years ago
Closed 12 years ago
Installing a packaged app, lose connection during download, remove it, install it again - network error doesn't fire and app infinitely spins trying to download resources
Categories
(Core Graveyard :: DOM: Apps, defect)
Tracking
(blocking-basecamp:-, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18+ fixed)
People
(Reporter: jsmith, Assigned: fabrice)
References
Details
Attachments
(1 file)
1.90 KB,
patch
|
ladamski
:
review+
fabrice
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
Build: B2G 18 1/9/2013
Device: Unagi
Steps:
1. Start a download of a packaged app that's large (http://mozqa.com/webapi-permissions-tests/ Packaged App Test Case 5)
2. Kill the network connection
3. Remove that app from the homescreen
4. Try installing that app again
Expected:
A network error should immediately be thrown - we don't have a network connection to install the app.
Actual:
We start downloading the app resources even though we don't have a network connection. The app starts spinning forever in a downloading state. No error is fired to the user.
Error Console:
01-09 14:08:22.379: E/GeckoConsole(109): [JavaScript Error: "[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.responseStatus]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource://gre/modules/Webapps.jsm :: <TOP_LEVEL> :: line 1854" data: no]" {file: "resource://gre/modules/Webapps.jsm" line: 1854}]
My hunch is that we're blowing up on the etag check.
Reporter | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Reporter | ||
Updated•12 years ago
|
Blocks: market-packaged-apps
Reporter | ||
Comment 1•12 years ago
|
||
Another STR that reproduces this behavior:
1. Install a packaged app
2. Kill the network connection
3. Try restarting the download without a network connection
Assignee | ||
Comment 2•12 years ago
|
||
We fail at https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1879
I think that just moving the block at https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1900 before the responseStatus block will fix that. Patch coming asap.
Assignee | ||
Comment 3•12 years ago
|
||
Jason verified on a build with this patch that this is fixing the issue.
Assignee: nobody → fabrice
Attachment #699825 -
Flags: review?(jst)
Comment 4•12 years ago
|
||
Comment on attachment 699825 [details] [diff] [review]
patch
JST says r=JST
Attachment #699825 -
Flags: review?(jst) → review+
Updated•12 years ago
|
blocking-basecamp: ? → -
tracking-b2g18:
--- → +
Assignee | ||
Comment 5•12 years ago
|
||
Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 699825 [details] [diff] [review]
patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined: network errors are not reported properly during package download, leading to a confusing UI.
Testing completed: yes
Risk to taking this patch (and alternatives if risky): no risk
String or UUID changes made by this patch: none
Attachment #699825 -
Flags: approval-mozilla-b2g18+
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Reporter | ||
Comment 8•12 years ago
|
||
Verified when I tested Fabrice's patch directly.
Ed - Can you land this on b2g18?
Flags: needinfo?(emorley)
Reporter | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Flags: needinfo?(emorley)
Comment 9•12 years ago
|
||
Status: VERIFIED → RESOLVED
Closed: 12 years ago → 12 years ago
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Reporter | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•12 years ago
|
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
•