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

Unified Diff: LayoutTests/fast/notifications/notifications-sandbox-permission.html

Issue 187323005: Revert of Remove support for legacy WebKit Notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/fast/notifications/notifications-sandbox-permission.html
diff --git a/LayoutTests/fast/notifications/notifications-sandbox-permission.html b/LayoutTests/fast/notifications/notifications-sandbox-permission.html
new file mode 100644
index 0000000000000000000000000000000000000000..f298dffb3cf0f890a9a36a0eb92c2732d7a2d999
--- /dev/null
+++ b/LayoutTests/fast/notifications/notifications-sandbox-permission.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.grantWebNotificationPermission("file://");
+ }
+ </script>
+</head>
+<body>
+ <p>Normal iframe. Should inherit permissions.</p>
+ <iframe src="resources/notifications-iframe.html"></iframe>
+
+ <p>Sandboxed iframe, with allow-same-origin. Should inherit permissions.</p>
+ <iframe sandbox="allow-scripts allow-same-origin"
+ src="resources/notifications-iframe.html"></iframe>
+
+ <p>Sandboxed iframe, without allow-same-origin. Should not inherit permissions.</p>
+ <iframe sandbox="allow-scripts"
+ src="resources/notifications-iframe.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698