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)

defect

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.
Priority: -- → P2
Component: General → DOM: Mozilla Extensions
Product: Web Apps → Core
QA Contact: general → general
Whiteboard: [mozappsapi]
What's the status on this bug? Did this get fixed?
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.
David - Can you retest?
Keywords: qawanted
Yup, but just to be clearer this is actually a first test, the previous test was against the html / js api.
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
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.