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

Side by Side Diff: third_party/WebKit/LayoutTests/presentation/iframe-no-sandbox.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/presentation/iframe-sandbox-allow-presentation.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
7 <iframe></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 if (result.test == 'getAvailability') {
15 assert_equals(result.status, 'success', result.test);
16 return;
17 }
18
19 // TODO(mlamouri): we are only testing that it doesn't fail for security
20 // reasons because the request will still fail for lack of devices/backend .
21 assert_equals(result.status, 'failure', result.test);
22 assert_not_equals(result.name, 'SecurityError', result.test);
23 });
24 });
25
26 document.querySelector('iframe').src = 'resources/embedded-smoke-tests.html';
27 }, 'Test that Presentation API works from inside an iframe.');
28
29 </script>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/presentation/iframe-sandbox-allow-presentation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698