Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

此討論串已經關閉並封存。 如果您有需要幫助,請新增一個新問題

the app:// protocol is blocked

  • 2 回覆
  • 2 有這個問題
  • 6 次檢視
  • 最近回覆由 magicloud

more options

We have the following website: http://windowsapps.com that uses the app:// protocol to launch apps with our custom software, appWave.

With the latest versions of FireFox when clicking an app:// link in our site with our app installed, nothing happens.

I've reviewed the firefox source code and found OUT that the app protocol is blocked by default now

AppProtocolHandler.prototype = {

 classID: Components.ID("{b7ad6144-d344-4687-b2d0-b6b9dce1f07f}"),
 QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler]),
 scheme: "app",
 defaultPort: -1,
 // Don't allow loading from other protocols, and only from app:// if webapps is granted
 protocolFlags: Ci.nsIProtocolHandler.URI_NOAUTH |
                Ci.nsIProtocolHandler.URI_DANGEROUS_TO_LOAD |
                Ci.nsIProtocolHandler.URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM,
 getAppInfo: function app_phGetAppInfo(aId) {
   if (!this._appInfo[aId]) {
     this._appInfo[aId] = appsService.getAppInfo(aId);
   }
   return this._appInfo[aId];
 }, 

Is there any way that my app can programatically onblock the app protocol?

We have the following website: http://windowsapps.com that uses the app:// protocol to launch apps with our custom software, appWave. With the latest versions of FireFox when clicking an app:// link in our site with our app installed, nothing happens. I've reviewed the firefox source code and found OUT that the app protocol is blocked by default now AppProtocolHandler.prototype = { classID: Components.ID("{b7ad6144-d344-4687-b2d0-b6b9dce1f07f}"), QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler]), scheme: "app", defaultPort: -1, // Don't allow loading from other protocols, and only from app:// if webapps is granted protocolFlags: Ci.nsIProtocolHandler.URI_NOAUTH | Ci.nsIProtocolHandler.URI_DANGEROUS_TO_LOAD | Ci.nsIProtocolHandler.URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM, getAppInfo: function app_phGetAppInfo(aId) { if (!this._appInfo[aId]) { this._appInfo[aId] = appsService.getAppInfo(aId); } return this._appInfo[aId]; }, Is there any way that my app can programatically onblock the app protocol?

所有回覆 (2)

more options

May I suggest a search on https://developer.mozilla.org/en-US/? You may find some helpful information there.

more options