mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1034731
- Better logging for manifest content-type errors. r=fabrice
This commit is contained in:
parent
dfb3976d54
commit
e8e1264391
@ -2135,7 +2135,7 @@ this.DOMApplicationRegistry = {
|
||||
if (xhr.status == 200) {
|
||||
if (!AppsUtils.checkManifestContentType(app.installOrigin, app.origin,
|
||||
xhr.getResponseHeader("content-type"))) {
|
||||
sendError("INVALID_MANIFEST");
|
||||
sendError("INVALID_MANIFEST_CONTENT_TYPE");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2235,7 +2235,7 @@ this.DOMApplicationRegistry = {
|
||||
if (xhr.status == 200) {
|
||||
if (!AppsUtils.checkManifestContentType(app.installOrigin, app.origin,
|
||||
xhr.getResponseHeader("content-type"))) {
|
||||
sendError("INVALID_MANIFEST");
|
||||
sendError("INVALID_MANIFEST_CONTENT_TYPE");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ var steps = [
|
||||
var miniManifestURL = PackagedTestHelper.gSJS +
|
||||
"?getManifest=true" +
|
||||
"&noManifestContentType=true";
|
||||
checkAppInstallError(miniManifestURL, "INVALID_MANIFEST");
|
||||
checkAppInstallError(miniManifestURL, "INVALID_MANIFEST_CONTENT_TYPE");
|
||||
},
|
||||
function() {
|
||||
// Test mini-manifest 'size' value is not number. Bug 839435.
|
||||
|
@ -91,7 +91,7 @@ function invalidContent(next) {
|
||||
var request = navigator.mozApps.install(url, null);
|
||||
|
||||
request.onerror = function onInstallError() {
|
||||
is(this.error.name, "INVALID_MANIFEST", "manifest with bad content type");
|
||||
is(this.error.name, "INVALID_MANIFEST_CONTENT_TYPE", "manifest with bad content type");
|
||||
next();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user