Closed Bug 739330 Opened 13 years ago Closed 13 years ago

navigator.mozApps - app uninstall

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla16

People

(Reporter: onecyrenus, Assigned: ianbicking)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached file patch for webapps.js (obsolete) —
Currently if you call uninstall on an app that is no longer installed, the onerror handler is invoked as expected but the error message is the origin ? this is something that would be hard to script around, my recommendation would be to return a string indicating that the app was not able to be uninstalled.
Currently the HTML / JS implementation returns NOT_INSTALLED... which is interesting because that was the reason we were calling uninstall.. maybe something like UNABLE_TO_FIND_APP would be more useful
NOT_INSTALLED is the error message Fabrice and I discussed on IRC.
Yes, NOT_INSTALLED makes more sense. You just can't uninstall something that's not installed ;)
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [mozApps API 1.0]
Component: DOM → DOM: Mozilla Extensions
Blocks: 746465
Whiteboard: [mozApps API 1.0]
This just ignores the message data sent from Webapps.jsm to Webapps.js (and turns all uninstall errors to NOT_INSTALLED), which seems to happen elsewhere in the codebase, but seems a little fishy. Maybe it should send the error name as the data.
Assignee: nobody → ianb
Attachment #609405 - Attachment is obsolete: true
Attachment #632109 - Flags: review?(fabrice)
Attachment #632109 - Flags: review?(fabrice) → review+
Keywords: checkin-needed
Keywords: checkin-needed
Target Milestone: --- → mozilla16
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: DOM: Mozilla Extensions → DOM: Apps
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: