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

Unified Diff: LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked.html

Issue 356243003: Block mixed <picture> and <img srcset> by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tests. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked.html
diff --git a/LayoutTests/http/tests/security/mixedContent/insecure-css-in-main-frame.html b/LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked.html
similarity index 65%
copy from LayoutTests/http/tests/security/mixedContent/insecure-css-in-main-frame.html
copy to LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked.html
index f226ffbe1b2f0fdb02138fdb0d9792bf78af6e30..10425ada5e82aa1b7d9f95e681e28b281bd411a5 100644
--- a/LayoutTests/http/tests/security/mixedContent/insecure-css-in-main-frame.html
+++ b/LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked.html
@@ -6,6 +6,7 @@ if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.setCloseRemainingWindowsWhenComplete(true);
+ testRunner.overridePreference("WebKitAllowDisplayingInsecureContent", false);
}
window.addEventListener("message", function (e) {
@@ -14,11 +15,9 @@ window.addEventListener("message", function (e) {
}, false);
</script>
-<p>This test opens a window that loads an insecure style sheet. We should
-trigger a mixed content callback because the main frame in the window is HTTPS
-but is running insecure content.</p>
+<p>This test opens a window that loads an insecure picture.</p>
<script>
-window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-css.html");
+window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-picture.html");
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698