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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-texttrack.html

Issue 1931063004: Stop blocking 'http://127.0.0.1/' as mixed content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ugh. Created 4 years, 6 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 <body> 2 <body>
3 <video> 3 <video>
4 <track kind="captions" onload="loaded()" onerror="errored()"> 4 <track kind="captions" onload="loaded()" onerror="errored()">
5 </video> 5 </video>
6 6
7 <script> 7 <script>
8 function loaded() { 8 function loaded() {
9 alert("Loaded successfully."); 9 alert("Loaded successfully.");
10 if (window.opener) 10 if (window.opener)
11 window.opener.postMessage('done', '*'); 11 window.opener.postMessage('done', '*');
12 } 12 }
13 function errored() { 13 function errored() {
14 alert("Failed to load."); 14 alert("Failed to load.");
15 if (window.opener) 15 if (window.opener)
16 window.opener.postMessage('done', '*'); 16 window.opener.postMessage('done', '*');
17 } 17 }
18 window.onload = function () { 18 window.onload = function () {
19 var track = document.querySelector('track'); 19 var track = document.querySelector('track');
20 var video = document.querySelector('video'); 20 var video = document.querySelector('video');
21 track.track.mode = "hidden"; 21 track.track.mode = "hidden";
22 url = "http://localhost:8000/security/resources/captions-with-access -control-headers.php?origin=1"; 22 url = "http://example.test:8000/security/resources/captions-with-acc ess-control-headers.php?origin=1";
23 video.setAttribute('crossorigin', 'anonymous'); 23 video.setAttribute('crossorigin', 'anonymous');
24 track.setAttribute('src', url); 24 track.setAttribute('src', url);
25 }; 25 };
26 </script> 26 </script>
27 </body> 27 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698