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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated.html

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more rebase fixups Created 4 years, 9 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Unauthenticated origin is insecure</title> 4 <title>Unauthenticated origin is insecure</title>
5 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharness-helpers.js"></script> 6 <script src="/resources/testharness-helpers.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <script src="/resources/get-host-info.js"></script> 8 <script src="/resources/get-host-info.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
(...skipping 10 matching lines...) Expand all
21 async_test(function (t) { 21 async_test(function (t) {
22 var messages = 0; 22 var messages = 0;
23 window.addEventListener("message", t.step_func(function (e) { 23 window.addEventListener("message", t.step_func(function (e) {
24 assert_false(e.data.isSecureContext); 24 assert_false(e.data.isSecureContext);
25 messages++; 25 messages++;
26 if (messages >= 2) 26 if (messages >= 2)
27 t.done(); 27 t.done();
28 }), false); 28 }), false);
29 29
30 var i1 = document.createElement("iframe"); 30 var i1 = document.createElement("iframe");
31 i1.src = get_host_info().UNAUTHENTICATED_ORIGIN + "/security/sec ureContexts/resources/post-securecontext-status.html"; 31 i1.src = get_host_info().HTTP_REMOTE_ORIGIN + "/security/secureC ontexts/resources/post-securecontext-status.html";
32 document.body.appendChild(i1); 32 document.body.appendChild(i1);
33 33
34 var i2 = document.createElement("iframe"); 34 var i2 = document.createElement("iframe");
35 i2.src = get_host_info().AUTHENTICATED_ORIGIN + "/security/secur eContexts/resources/post-securecontext-status.html"; 35 i2.src = get_host_info().HTTPS_REMOTE_ORIGIN + "/security/secure Contexts/resources/post-securecontext-status.html";
36 document.body.appendChild(i2); 36 document.body.appendChild(i2);
37 }, "Frames are insecure"); 37 }, "Frames are insecure");
38 } 38 }
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698