Index: LayoutTests/http/tests/notifications/update-shared-worker.html |
diff --git a/LayoutTests/http/tests/notifications/update-shared-worker.html b/LayoutTests/http/tests/notifications/update-shared-worker.html |
index eed40ee0ac4c82ef72883fd172fca6d96afca047..7516d4dee50b7f4f9828e540b58c1fa90412ff9c 100644 |
--- a/LayoutTests/http/tests/notifications/update-shared-worker.html |
+++ b/LayoutTests/http/tests/notifications/update-shared-worker.html |
@@ -12,8 +12,10 @@ |
// "tag" property in the constructor's options. When the test is being ran |
// manually, grant Notification permission first and verify that only a |
// single notification will be shown at the end of the test. |
- if (window.testRunner) |
+ if (window.testRunner) { |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
+ } |
sharedWorkerTest("resources/update-event-test.js"); |
</script> |