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

Unified Diff: LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js

Issue 1318293002: Only expose Notification.requestPermission() on the Window global. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: handle detached contexts Created 5 years, 4 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/notifications/resources/instrumentation-service-worker.js
diff --git a/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js b/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js
index 5327843a0b62dc8432680179b5b6707e40d6964c..9cad80453b09efeebb8ffecdc8d01d6cd96a0e25 100644
--- a/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js
+++ b/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js
@@ -53,6 +53,11 @@ addEventListener('message', function(workerEvent) {
});
break;
+ case 'request-permission-exists':
+ messagePort.postMessage({ command: event.data.command,
+ value: 'requestPermission' in Notification });
+ break;
+
default:
messagePort.postMessage({ command: 'error', message: 'Invalid command: ' + event.data.command });
break;

Powered by Google App Engine
This is Rietveld 408576698