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

Unified Diff: LayoutTests/http/tests/push_messaging/permission-state-prompt-in-service-worker.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-service-worker.html
diff --git a/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-service-worker.html b/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-service-worker.html
index 47273688b39ea9ce7f644feec72344315c713fdc..f3a4240b887e3cc11d6b688627e65f02e2d7594f 100644
--- a/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-service-worker.html
+++ b/LayoutTests/http/tests/push_messaging/permission-state-prompt-in-service-worker.html
@@ -21,7 +21,7 @@ async_test(function(test) {
var scope = 'resources/scope/' + location.pathname;
getActiveServiceWorkerWithMessagePort(test, script, scope).then(function(workerInfo) {
- workerInfo.port.postMessage({command: 'permissionState'});
+ workerInfo.port.postMessage({command: 'permissionState', options: {userVisibleOnly: true}});
workerInfo.port.addEventListener('message', function(event) {
if (typeof event.data != 'object' || !event.data.command)

Powered by Google App Engine
This is Rietveld 408576698