Index: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html |
index 0d705aa6ca5da95ab21199a80b4de370c8fc030b..af1ce4a4cca0f700cb00b9cd46cb813d9bc1ec43 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html |
@@ -1,8 +1,12 @@ |
-<img src="http://127.0.0.1:8080/security/resources/compass.jpg" |
- srcset> |
<script> |
window.onload = function() { |
- if (window.opener) |
- window.opener.postMessage('done', '*'); |
+ var img = document.createElement('img'); |
+ img.src = 'http://127.0.0.1:8080/security/resources/compass.jpg'; |
+ img.srcset = ''; |
+ img.addEventListener('load', function () { |
+ if (window.opener) |
+ window.opener.postMessage('done', '*'); |
+ }); |
+ document.body.appendChild(img); |
}; |
</script> |