Closed
Bug 917673
Opened 13 years ago
Closed 12 years ago
Webapps.jsm attempts to throw APP_PACKAGE_CORRUPTED
Categories
(Firefox Graveyard :: Web Apps, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 29
People
(Reporter: onecyrenus, Assigned: marco)
Details
Attachments
(1 file)
|
1.71 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
I believe Webapps.jsm is throwing APP_PACKAGE_CORRUPTED in a scenario that is highly unlikely. -> NS_ERROR_FILE_CORRUPTED
http://dxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#l2609
It is probably better to attach to any/all of the following:
NS_ERROR_SIGNED_JAR_MODIFIED_ENTRY
NS_ERROR_SIGNED_JAR_ENTRY_INVALID
NS_ERROR_SIGNED_JAR_ENTRY_MISSING
NS_ERROR_FILE_CORRUPTED only seems to be thrown if the size of the signature file is over 1MB. or something thereabouts.
| Reporter | ||
Comment 1•13 years ago
|
||
This is semantics, but INVALID_SIGNATURE seems to imply that the signature itself has been incorrectly applied, whereas something like APP_PACKAGE_CORRUPTED implies that the package contents itself has been changed, something of the nature APP_PACKAGE_INVALID, could correctly convey the right meaning.
From outside perspective INVALID / APP_PACKAGE_CORRUPTED aren't really tied to a semantic meaning, the error code APP_SIGNATURE_TOO_LARGE, would probably provide further insight as to what had happened.
Updated•12 years ago
|
Priority: -- → P3
| Assignee | ||
Comment 2•12 years ago
|
||
I think this could be a good distinction.
APP_PACKAGE_CORRUPTED when the JAR has been corrupted.
APP_PACKAGE_INVALID when the JAR is invalid.
Attachment #8346822 -
Flags: review?(fabrice)
Updated•12 years ago
|
Attachment #8346822 -
Flags: review?(fabrice) → review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 3•12 years ago
|
||
Assignee: nobody → mar.castelluccio
Keywords: checkin-needed
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Updated•10 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•