Bug 832960 - Geolocation and desktop notification should require a manifest entry for apps on Android. r=mfinkle

This commit is contained in:
Marco Castelluccio 2013-07-30 15:38:01 -04:00
parent 10dccadd88
commit 50f99a7d61

View File

@ -31,6 +31,12 @@ ContentPermissionPrompt.prototype = {
request.cancel();
return true;
}
if (request.principal.appId !== Ci.nsIScriptSecurityManager.NO_APP_ID && request.principal.appId !== Ci.nsIScriptSecurityManager.UNKNOWN_APP_ID && (result == Ci.nsIPermissionManager.UNKNOWN_ACTION && !!kEntities[request.type])) {
request.cancel();
return true;
}
return false;
},