Index: LayoutTests/http/tests/notifications/serviceworkerregistration-get.html |
diff --git a/LayoutTests/http/tests/notifications/serviceworkerregistration-get.html b/LayoutTests/http/tests/notifications/serviceworkerregistration-get.html |
index 04462b1d4f1db4be0cf1ebe365976711e273763b..f7a0924b1014cad25f83e1c9b83451dc9f062288 100644 |
--- a/LayoutTests/http/tests/notifications/serviceworkerregistration-get.html |
+++ b/LayoutTests/http/tests/notifications/serviceworkerregistration-get.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 registration = null; |
@@ -51,4 +52,4 @@ |
}, 'ServiceWorkerRegistration.getNotifications() returns the opened notifications.'); |
</script> |
</body> |
-</html> |
+</html> |