DOMApplicationsRegistry.checkInstalled() cannot determine if the app is installed

NEW
Unassigned

Status

Core Graveyard
DOM: Apps
3 years ago
8 months ago

People

(Reporter: anaran, Unassigned)

Tracking

({dev-doc-needed})

Trunk
dev-doc-needed

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

3 years ago
See:

https://developer.mozilla.org/en-US/docs/Web/API/DOMApplicationsRegistry/checkInstalled

Details:

Summary

Gets information about the given app. This can be used to determine if the app is installed.
Syntax

var request = window.navigator.mozApps.checkInstalled(url);

Problem:

Contrary to the documentation above neither onsuccess nor onerror ever get called in my tesing if url is not installed.

Once url is installed, checkInstalled can be used to obtain details about the app, but it's useless if url is not yet (or no longer) installed.

I am using a directory served via
python -m SimpleHTTPServer
to successfully install an unprivileged web app on a windows desktop.

In my testing I found that I have to use
window.navigator.mozApps.getInstalled();
to confirm the app is actually not installed.

http://mzl.la/1vxCDgA
(Reporter)

Updated

3 years ago
Component: Apps → DOM: Apps
Product: Developer Documentation → Core
Version: unspecified → 43 Branch
Adding dev-doc-needed, so that we can update the documentation (if needed) once this bug is resolved (in any way).
Keywords: dev-doc-needed
(Reporter)

Comment 2

3 years ago
This is still an issue in
45.0a1 (2015-11-16)
on ubuntu
Version: 43 Branch → Trunk
Have you tested your app in Firefox OS or the Firefox OS simulator?

Updated

8 months ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.