Bug 915570 - Rename 'keyboard' permission and role to 'input'. r=yxl

This commit is contained in:
Tim Chien
2013-11-01 09:01:14 -04:00
parent 923db21571
commit ee690af4e3
7 changed files with 12 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ MozKeyboard.prototype = {
let principal = win.document.nodePrincipal;
// Limited the deprecated mozKeyboard API to certified apps only
let perm = Services.perms.testExactPermissionFromPrincipal(principal,
"inputmethod-manage");
"input-manage");
if (perm != Ci.nsIPermissionManager.ALLOW_ACTION) {
dump("No permission to use the keyboard API for " +
principal.origin + "\n");