Closed
Bug 783433
Opened 13 years ago
Closed 13 years ago
navigator.mozApps.getSelf() does not return the app when the app is installed
Categories
(Core Graveyard :: DOM: Apps, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: onecyrenus, Unassigned)
Details
(Keywords: regression)
From all experiments I believe navigator.mozApps.getSelf() does not return the app when the app is installed.
The repro is the following
inside gaia/external-apps
mkdir webapitests
cd webapitests
wget http://people.mozilla.com/~dclarke/kofway/manfest.webapp
echo "http://people.mozilla.com/~dclarke/kofway/" >> origin
cd ../../
make
make install-gaia
The icon will be there click to load, the message "The app is not installed" will show because there is nothing being returned in the getSelf success handler.
If you check
http://people.mozilla.com/~dclarke/kofway/js/start.js you will be able to see the code.
Let me know if this is a bug or am doing something incorrectly.
Reporter | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Updated•13 years ago
|
Component: Web Apps → DOM: Apps
Product: Firefox → Core
QA Contact: jsmith
Comment 1•13 years ago
|
||
Dug into this. In this source code below:
function getSelf() {
var request = window.navigator.mozApps.getSelf();
request.onsuccess = function() {
alert("success");
var result = request.result;
alert(result);
result.launch();
};
request.onerror = function() {
// Display error name from the DOMError object
alert("Error: " + request.error.name);
};
}
In this example, I'm noticing request.result returning null even with an app installed.
Keywords: regression
Keywords: qawanted
QA Contact: jsmith
Summary: navigator.mozApps.getSelf on b2g → navigator.mozApps.getSelf() does not return the app when the app is installed
Comment 2•13 years ago
|
||
Re-tested per Fabrice's feedback. I'm getting an app object on return of getSelf on desktop. Going to check Firefox OS now...
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Comment 3•13 years ago
|
||
Opps. Closed to early.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 4•13 years ago
|
||
Works for me on the latest build 8/17/2012.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•