Bug 1043136 - Handle access in permission prompt. r=mfinkle

This commit is contained in:
Jim Chen 2014-07-29 07:36:00 -04:00
parent b8ccd3b59c
commit 55dc7e036b

View File

@ -71,7 +71,9 @@ ContentPermissionPrompt.prototype = {
let perm = types.queryElementAt(0, Ci.nsIContentPermissionType);
// Returns true if the request was handled
if (this.handleExistingPermission(request, perm.type, isApp))
let access = (perm.access && perm.access !== "unused") ?
(perm.type + "-" + perm.access) : perm.type;
if (this.handleExistingPermission(request, access, isApp))
return;
let chromeWin = this.getChromeForRequest(request);