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

Side by Side Diff: LayoutTests/http/tests/security/mixedContent/insecure-css-resources.html

Issue 957263002: Mixed Content: Explicitly allow blockable content for specific tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.setCanOpenWindows(); 6 testRunner.setCanOpenWindows();
7 testRunner.setCloseRemainingWindowsWhenComplete(true); 7 testRunner.setCloseRemainingWindowsWhenComplete(true);
8 testRunner.overridePreference("WebKitAllowRunningInsecureContent", true);
8 } 9 }
9 10
10 window.addEventListener("message", function (e) { 11 window.addEventListener("message", function (e) {
11 if (window.testRunner) 12 if (window.testRunner)
12 testRunner.notifyDone(); 13 testRunner.notifyDone();
13 }, false); 14 }, false);
14 </script> 15 </script>
15 <p>This test opens a window that loads a style sheet which fetches an insecure 16 <p>This test opens a window that loads a style sheet which fetches an insecure
16 background image and an insecure web font. We should trigger a mixed content 17 background image and an insecure web font. We should trigger a mixed content
17 callback because the main frame in the window is HTTPS but is running insecure 18 callback because the main frame in the window is HTTPS but is running insecure
18 content.</p> 19 content.</p>
19 <script> 20 <script>
20 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-i nsecure-css-resources.html"); 21 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-i nsecure-css-resources.html");
21 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698