Bug 1219063, Part 2 - Remove obsolete "push" permission. r=mt

This commit is contained in:
Kit Cambridge 2015-10-30 18:16:19 -07:00
parent dab07845f1
commit 3e51ee81e3
4 changed files with 4 additions and 4 deletions

View File

@ -1299,7 +1299,7 @@ this.PushService = {
}
let permission = subject.QueryInterface(Ci.nsIPermission);
if (permission.type != "push") {
if (permission.type != "desktop-notification") {
return Promise.resolve();
}

View File

@ -327,7 +327,7 @@
["dom.serviceWorkers.testing.enabled", true],
["dom.serviceWorkers.interception.enabled", true]
]}, runTest);
SpecialPowers.addPermission('push', true, document);
SpecialPowers.addPermission('desktop-notification', true, document);
SimpleTest.waitForExplicitFinish();
</script>
</body>

View File

@ -180,7 +180,7 @@ function disableServiceWorkerEvents(...scopes) {
for (let scope of scopes) {
Services.perms.add(
Services.io.newURI(scope, null, null),
'push',
'desktop-notification',
Ci.nsIPermissionManager.DENY_ACTION
);
}

View File

@ -45,7 +45,7 @@ function makePushPermission(url, capability) {
principal: Services.scriptSecurityManager.getCodebasePrincipal(
Services.io.newURI(url, null, null)
),
type: 'push',
type: 'desktop-notification',
};
}