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

Side by Side Diff: third_party/WebKit/LayoutTests/presentation/presentation-request-iframe-default-success.html

Issue 2782663002: [Presentation API] Move sandbox check to PresentationRequest constructor. (Closed)
Patch Set: Respond to imcheng@ comments 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
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></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, 'success');
18 }));
19
20 // Navigate the iframe
21 iframe.src = 'resources/iframe-sandbox.html';
22 }, "Test that creating PresentationRequest succeeds when the iframe is not sandb oxed.");
23
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698