Index: LayoutTests/http/tests/notifications/serviceworkerregistration-document-close.html |
diff --git a/LayoutTests/http/tests/notifications/serviceworkerregistration-document-close.html b/LayoutTests/http/tests/notifications/serviceworkerregistration-document-close.html |
index f03b1d3ae3038423398c4b0dadc2ed2816137cad..24013135fec10f60d546f819ac206d6a42567ee4 100644 |
--- a/LayoutTests/http/tests/notifications/serviceworkerregistration-document-close.html |
+++ b/LayoutTests/http/tests/notifications/serviceworkerregistration-document-close.html |
@@ -17,6 +17,7 @@ |
var scope = 'resources/scope/serviceworkerregistration-document-close', |
script = 'resources/instrumentation-service-worker.js'; |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
var workerInfo = null; |
@@ -54,4 +55,4 @@ |
}, 'Clicking on a notification displayed through showNotification() fires a Service Worker event, and can be closed there.'); |
</script> |
</body> |
-</html> |
+</html> |