mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1219063, Part 2 - Remove obsolete "push" permission. r=mt
This commit is contained in:
parent
dab07845f1
commit
3e51ee81e3
@ -1299,7 +1299,7 @@ this.PushService = {
|
||||
}
|
||||
|
||||
let permission = subject.QueryInterface(Ci.nsIPermission);
|
||||
if (permission.type != "push") {
|
||||
if (permission.type != "desktop-notification") {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ function makePushPermission(url, capability) {
|
||||
principal: Services.scriptSecurityManager.getCodebasePrincipal(
|
||||
Services.io.newURI(url, null, null)
|
||||
),
|
||||
type: 'push',
|
||||
type: 'desktop-notification',
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user