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

Unified Diff: LayoutTests/http/tests/security/suborigins/suborigin-blocked-notifications.php

Issue 1109633002: Basic experimental suborigin CSP directive and SecurityOrigin mods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on ToT 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/security/suborigins/suborigin-blocked-notifications.php
diff --git a/LayoutTests/http/tests/security/suborigins/suborigin-blocked-notifications.php b/LayoutTests/http/tests/security/suborigins/suborigin-blocked-notifications.php
deleted file mode 100644
index b3802def35fcca1d9875701a525acf13f83092d2..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/suborigins/suborigin-blocked-notifications.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-header("Content-Security-Policy: suborigin foobar");
-?>
-<!DOCTYPE html>
-<html>
-<head>
-<title>Notifications are denied in suborigins.</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-</head>
-<script>
- testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
- Notification.requestPermission(function (status) {
- assert_equals(status, 'default', 'The notification permission request should not be granted.');
-
- var notification = new Notification('My Notification');
- notification.addEventListener('show', function() {
- assert_unreached('The notification is not expected to be shown.');
- });
-
- notification.addEventListener('error', function() {
- done();
- });
- });
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698