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

Side by Side Diff: third_party/WebKit/LayoutTests/presentation/iframe-sandbox-default.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
7 <iframe sandbox='allow-scripts allow-same-origin'></iframe>
8
9 <script>
10
11 async_test(function(t) {
12 window.onmessage = t.step_func_done(function(e) {
13 e.data.forEach(function(result) {
14 assert_equals(result.status, 'failure', result.test);
15 assert_equals(result.name, 'SecurityError', result.test);
16 });
17 });
18
19 document.querySelector('iframe').src = 'resources/embedded-smoke-tests.html';
20 }, 'Test that Presentation API is blocked inside a sandboxed iframe without "all ow-presentation".');
21
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698