Closed
Bug 703714
Opened 14 years ago
Closed 13 years ago
calling navigator.apps.install with relative url sets app "origin" to "undefined://"
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 745928
People
(Reporter: ianbicking, Unassigned)
Details
(Keywords: qawanted, Whiteboard: [mozappsapi])
From https://github.com/mozilla/openwebapps/issues/27
Here's an example:
navigator.apps.install({
url: "theband.webapp",
onsuccess: function() {
alert('OMG');
},
onerror: function(wtf) {
console.log(wtf);
}
Doing this results in the app manifest being retrieved properly and the app being installed, but once installed, if the user goes to the gear icon in Firefox's browser chrome and selects "Manage Apps", then "View Manifest" for the installed app, the "origin" key of the manifest is set to undefined://.
To work around this, we changed the url key to be an absolute URL.
---
https://developer.mozilla.org/en/OpenWebApps/TheJavaScript_API#Installation_API%28navigator.apps.*%29 specifies that the install URL must be absolute (or preceded by a '/' if the app is from the same origin). It seems like we may not be enforcing the rule, we should make the install function fail in this case.
---
Ah, indeed. We were working off of the less comprehensive doc at https://developer.mozilla.org/en/OpenWebApps/Getting_Started.
Updated•14 years ago
|
Priority: -- → P2
Updated•13 years ago
|
Component: General → DOM: Mozilla Extensions
Product: Web Apps → Core
QA Contact: general → general
Updated•13 years ago
|
Whiteboard: [mozappsapi]
Comment 1•13 years ago
|
||
What's the status on this bug? Did this get fixed?
| Reporter | ||
Comment 2•13 years ago
|
||
I'm not sure, it would be good to verify. Given the change of implementation there's a good chance this is no longer an issue.
Comment 4•13 years ago
|
||
Yup, but just to be clearer this is actually a first test, the previous test was against the html / js api.
| Reporter | ||
Comment 5•13 years ago
|
||
In the new DOM implementation this results in a MANIFEST_PARSE_ERROR. I've described this in more detail in another bug.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•