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

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

Issue 1890953003: Remove the "line-number flakiness" by adding an img element dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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
1 <img src="http://127.0.0.1:8080/security/resources/compass.jpg"
2 srcset="http://127.0.0.1:8080/security/resources/compass.jpg 2x">
3 <script> 1 <script>
4 window.onload = function() { 2 window.onload = function() {
5 if (window.opener) 3 var img = document.createElement('img');
6 window.opener.postMessage('done', '*'); 4 img.src = 'http://127.0.0.1:8080/security/resources/compass.jpg';
5 img.srcset = 'http://127.0.0.1:8080/security/resources/compass.jpg 2x';
6 img.addEventListener('load', function () {
7 if (window.opener)
8 window.opener.postMessage('done', '*');
9 });
10 document.body.appendChild(img);
7 }; 11 };
8 </script> 12 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698