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

Unified Diff: LayoutTests/http/tests/push_messaging/permission-state-prompt-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
Index: LayoutTests/http/tests/push_messaging/permission-state-prompt-in-document.html
diff --git a/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-document.html b/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-document.html
index 77dd09b03b8cd85634fa05ea3dc009d9aeacc02e..966b6d73b2f4370d911202248971d24e7c2ebd3d 100644
--- a/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-document.html
+++ b/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-document.html
@@ -18,7 +18,7 @@ async_test(function(test) {
service_worker_unregister_and_register(test, workerUrl, workerScope)
.then(function(serviceWorkerRegistration) {
// If running manually, clear permissions before running this test.
- return serviceWorkerRegistration.pushManager.permissionState();
+ return serviceWorkerRegistration.pushManager.permissionState({userVisibleOnly: true});
})
.then(function(permissionStatus) {
assert_equals(permissionStatus, 'prompt');

Powered by Google App Engine
This is Rietveld 408576698