Index: LayoutTests/http/tests/notifications/close-document.html |
diff --git a/LayoutTests/http/tests/notifications/close-document.html b/LayoutTests/http/tests/notifications/close-document.html |
index 1fab94abd0fc783f5a5d892c706f809dbff067e6..d3894430af36f4502fd070f535a6f4719b986581 100644 |
--- a/LayoutTests/http/tests/notifications/close-document.html |
+++ b/LayoutTests/http/tests/notifications/close-document.html |
@@ -11,9 +11,11 @@ |
// Tests that Document-bound notifications will fire the onclose event |
// when they have their close() method called. When the test is being ran |
// manually, grant Notification permission first. |
- if (window.testRunner) |
+ if (window.testRunner) { |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
+ } |
</script> |
<script src="resources/close-event-test.js"></script> |
</body> |
-</html> |
+</html> |