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

Side by Side Diff: third_party/WebKit/LayoutTests/presentation/presentation-request-sandbox-error.html

Issue 2780583003: [Presentation API] Move sandbox check to PresentationRequest ctor (Closed)
Patch Set: add layout test Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/presentation/presentation-request-sandbox-success.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <iframe sandbox="allow-scripts"></iframe>
7 <script>
8
9 var iframe = document.querySelector('iframe');
10
11 async_test(t => {
12 iframe.onload = t.step_func(() => {
13 iframe.contentWindow.postMessage('create', '*');
14 });
15
16 window.addEventListener("message", t.step_func_done(e => {
17 assert_equals(e.data, 'SecurityError');
18 }));
19
20 // Navigate the iframe
21 iframe.src = 'resources/iframe-sandbox.html';
22 }, "Test that creating PresentationRequest throws SecurityError if 'allow-presen tation' keyword is missing.");
23
24 </script>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/presentation/presentation-request-sandbox-success.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698