Closed Bug 833373 Opened 13 years ago Closed 13 years ago

The app install even if the content-type is not application/x-web-app-manifest+json

Categories

(Core Graveyard :: DOM: Apps, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 831246

People

(Reporter: julienw, Unassigned)

Details

I think we do this check ([1], [2], [3]) but, I don't know why, it doesn't work, because I can install the apps in http://everlong.org/mozilla whereas the manifests are served with the mime type text/plain: $ curl -I http://everlong.org/mozilla/packaged/manifest.webapp HTTP/1.1 200 OK Date: Tue, 22 Jan 2013 16:05:46 GMT Server: Apache/2.2.16 (Debian) Last-Modified: Wed, 09 Jan 2013 13:21:05 GMT ETag: "4d2daef47a8f8" Accept-Ranges: bytes Content-Length: 379 Content-Type: text/plain I don't understand why this doesn't work so I CC fabrice. I don't think this should block (except this is a security problem but I believe it's not). [1] https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/AppsUtils.jsm#230 [2] http://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1540 [3] mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1540/checkM
This is a dupe of a WONTFIX.
Whiteboard: DUPEME
still, I don't understand this : we have code to do this and it doesn't work, I want to understand. I'm perfectly ok with not fixing this but then we should remove the code that does the check.
(In reply to Julien Wajsberg [:julienw] from comment #2) > still, I don't understand this : we have code to do this and it doesn't > work, I want to understand. It technically works on cross-origin checks, not same-origin checks. > > I'm perfectly ok with not fixing this but then we should remove the code > that does the check. The check is valid, but it only applies cross-origin, not same origin.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Jason, ok, you're right, thanks for the clarification.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.