Closed
Bug 1013279
Opened 10 years ago
Closed 10 years ago
Whenever a app installation fails, a uncatch error is thrown by Task.jsm
Categories
(Core Graveyard :: DOM: Apps, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 997717
People
(Reporter: amac, Assigned: amac)
Details
Attachments
(1 file)
STR: 1. Try to install any application that fails (invalid signature, invalid store). For example, try running the mochitests for dom/apps/tests. Expected: The installation fails silently Actual: The installation fails, but there's a error dumped that says: 0:11.38 ************************* 0:11.38 A coding exception was thrown and uncaught in a Task. 0:11.38 0:11.38 Full message: TypeError: undefined has no properties 0:11.38 Full stack: this.DOMApplicationRegistry.startDownload<@resource://gre/modules/Webapps.jsm:1277:1 0:11.38 TaskImpl_run@resource://gre/modules/Task.jsm:282:13 0:11.38 Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:863:11 0:11.38 this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:742:7 0:11.38 0:11.38 *************************
Assignee | ||
Comment 1•10 years ago
|
||
The problem is that promise.then(fulfilledCB, rejectedCB) also returns a promise, with the fulfillment state resulting from the execution of either fulfilledCB or rejectedCB. In this case, rejectedCB is _revertDownloadPackage, which succeeded always, and made the next .then() on the chain to try to execute the fulfillment CB (onDownloadPackage), which then failed because the returned value was undefined. Now when the promise should be rejected we always throw.
Attachment #8425460 -
Flags: review?(ferjmoreno)
Comment 2•10 years ago
|
||
This is a duplicate of bug 997717.
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•10 years ago
|
Attachment #8425460 -
Attachment is patch: true
Assignee | ||
Updated•10 years ago
|
Attachment #8425460 -
Flags: review?(ferjmoreno)
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
•