Closed Bug 789341 Opened 12 years ago Closed 12 years ago

Webapps.js catch eats everything

Categories

(Core Graveyard :: DOM: Apps, defect)

18 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla18

People

(Reporter: marco, Assigned: marco)

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) — Splinter Review
MANIFEST_PARSE_ERROR is a JSON parsing error, so it should be better to put only JSON.parse in the try block.
Attachment #659055 - Flags: review?(fabrice)
Comment on attachment 659055 [details] [diff] [review]
Patch

Review of attachment 659055 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/apps/src/Webapps.js
@@ +106,1 @@
>            Services.DOMRequest.fireError(request, "MANIFEST_PARSE_ERROR");

You need to return at this point, to not run the code that follows.
Attachment #659055 - Flags: review?(fabrice) → review-
Attached patch Patch v2Splinter Review
Assignee: nobody → mar.castelluccio
Attachment #659055 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #663692 - Flags: review?(fabrice)
Attachment #663692 - Flags: review?(fabrice) → review+
Keywords: checkin-needed
Flags: in-testsuite? → in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/ca36ddcde6b1
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
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: