Index: LayoutTests/http/tests/notifications/serviceworkerregistration-document-click.html |
diff --git a/LayoutTests/http/tests/notifications/serviceworkerregistration-document-click.html b/LayoutTests/http/tests/notifications/serviceworkerregistration-document-click.html |
index 92e74ba7f59cbf62ba4883b3f1b8e3654c852da1..d8866d6fbfca7ec5705553d2bae2d44540c78010 100644 |
--- a/LayoutTests/http/tests/notifications/serviceworkerregistration-document-click.html |
+++ b/LayoutTests/http/tests/notifications/serviceworkerregistration-document-click.html |
@@ -17,6 +17,7 @@ |
var scope = 'resources/scope/serviceworkerregistration-document-click', |
script = 'resources/instrumentation-service-worker.js'; |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
var workerInfo = null; |
@@ -50,4 +51,4 @@ |
}, 'Clicking on a notification displayed through showNotification() fires a Service Worker event.'); |
</script> |
</body> |
-</html> |
+</html> |