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

Side by Side Diff: LayoutTests/fast/notifications/notification-sandbox-permission.html

Issue 186713002: Add new layout tests for the Web Notification API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.grantWebNotificationPermission("file://", true);
7 testRunner.dumpAsText();
8 testRunner.dumpChildFramesAsText();
9 }
10 </script>
11 </head>
12 <body>
13 <p>
14 Tests that the &lt;iframe sandbox&gt; attribute influences whether notific ation permissions
15 will be inherit by an iframe.
16 </p>
17 <h1>Normal iframe. Should inherit permissions.</h1>
18 <iframe src="resources/display-permission.html"></iframe>
19
20 <h1>Sandboxed iframe with allow-same-origin. Should inherit permissions.</h1 >
21 <iframe src="resources/display-permission.html" sandbox="allow-scripts allow -same-origin"></iframe>
22
23 <h1>Sandboxed iframe without allow-same-origin. Should not inherit permissio ns.</h1>
24 <iframe src="resources/display-permission.html" sandbox="allow-scripts"></if rame>
25 </body>
26 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698