Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html

Issue 1130233003: Reject the permissionState promise with NotSupported Exception (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/push_messaging/permission-state-denied-in-service-worker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html
diff --git a/LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html b/LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html
index 52d1583dfa89c8cf669b06502d738934f5d55f2d..84953fdc8e2fbfcbdd1a3e4f024b9e28b6d8d132 100644
--- a/LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html
+++ b/LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html
@@ -17,7 +17,7 @@ async_test(function(test) {
// If running manually, deny permission when prompted.
if (window.testRunner)
testRunner.setPermission('push-messaging', 'denied', location.origin, location.origin);
- return serviceWorkerRegistration.pushManager.permissionState();
+ return serviceWorkerRegistration.pushManager.permissionState({userVisibleOnly: true});
})
.then(function(permissionStatus) {
assert_equals(permissionStatus, 'denied');
« no previous file with comments | « no previous file | LayoutTests/http/tests/push_messaging/permission-state-denied-in-service-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698