Index: LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
index 8366a07fd02b93cbe0a21674cde454cfb31c627b..c816fd7e0b4f364f7a9f1db45e0b01c5623c7d7d 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
+++ b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
@@ -4,8 +4,10 @@ |
<script src="../../resources/testharnessreport.js"></script> |
<script src="../resources/test-helpers.js"></script> |
<script> |
-if (window.testRunner) |
+if (window.testRunner) { |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
+} |
var t = async_test('notificationclick can open new WindowClient'); |
t.step(function() { |