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

Unified Diff: LayoutTests/http/tests/push_messaging/permission-state-granted-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-granted-in-service-worker.html
diff --git a/LayoutTests/http/tests/push_messaging/permission-state-granted-in-service-worker.html b/LayoutTests/http/tests/push_messaging/permission-state-granted-in-service-worker.html
index 1d25f6708c4543d4bf6d5ff9b6283f796de17c40..dbe2c2639594be2f1a6f4ce67efd98fec8c6cce9 100644
--- a/LayoutTests/http/tests/push_messaging/permission-state-granted-in-service-worker.html
+++ b/LayoutTests/http/tests/push_messaging/permission-state-granted-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