Closed Bug 1021234 Opened 10 years ago Closed 10 years ago

installing packaged app from domain not listed in installs_allowed_from silently fails

Categories

(Firefox Graveyard :: Web Apps, defect)

30 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bwalker, Unassigned)

References

Details

Attachments

(1 file)

STR:

1. Find a Marketplace packaged app whose installs_allowed_from is not "*" (example: https://marketplace.firefox.com/app/line)
2. Create a web page that invokes mozApps.installPackage on that app
3. Host that page on a domain not listed in installs_allowed_from
4. Try to install

Expected results:

The onerror() callback is invoked with some message about origin denied

Actual results:

Install appears to succeed but no app appears in application folder. Neither success nor error callback is ever invoked.
Attached file Test page
The update manifest doesn't specify installs_allowed_from, so the |onsuccess| callback of |installPackage| is successfully called. Then, when the package is downloaded, the |ondownloaderror| callback of the app object is called with INSTALL_FROM_DENIED.
(This is the expected behavior of the API)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: