2013-07-25 7 views
0

나는 파이어 폭스 OS 응용 프로그램을 짓고 있어요 던지는 및 코드의 다음 줄에 :파이어 폭스 OS 앱 매니페스트 NS_ERROR_FAILURE 오류

Error: NS_ERROR_FAILURE: INVALID_URL: '/mymanifest.webapp', Source File: resource://gre/components/Webapps.js, Line: 87

:

var app = navigator.mozApps.install('mymanifest.webapp');

파이어 폭스 콘솔에서 오류가 발생합니다

내 MVC 컨트롤러는 다음과 같습니다.

public ContentResult FirefoxOsManifest() 
{ 
    string json = GetManifestJson(); // a method that returns json string 

    return Content(json, "application/x-web-app-manifest+json"); 
} 

내 IIS에 .webapp mimetype을 추가하고 IIS를 다시 시작한 다음 World Wide Web Publishing Service을 다시 시작하고 브라우저를 다시 시작한 다음 매니페스트의 유효성을 검사하고 여전히 오류가 표시됩니다. 내가 뭘 놓치고 있니?

답변

1

모질라에서 온 누군가가이 문제에 대해 저에게 돌아 왔습니다.

We currently do not support installation of web apps through a relative URL. You need to use an absolute URL path to the webapp manifest.