Index: LayoutTests/http/tests/notifications/serviceworkerregistration-get-from-service-worker.html |
diff --git a/LayoutTests/http/tests/notifications/serviceworkerregistration-get-from-service-worker.html b/LayoutTests/http/tests/notifications/serviceworkerregistration-get-from-service-worker.html |
index 14c09084e3cae7b9cc466149de32157f77933347..e629829be1bbbd0ae466ed1997a2c46b1cc0059d 100644 |
--- a/LayoutTests/http/tests/notifications/serviceworkerregistration-get-from-service-worker.html |
+++ b/LayoutTests/http/tests/notifications/serviceworkerregistration-get-from-service-worker.html |
@@ -16,6 +16,7 @@ |
var scope = 'resources/scope/' + location.pathname, |
script = 'resources/instrumentation-service-worker.js'; |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
var info = null; |
@@ -59,4 +60,4 @@ |
}, 'ServiceWorkerRegistration.getNotifications() when created by a Service Worker.'); |
</script> |
</body> |
-</html> |
+</html> |