Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-fetch-blocked.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-fetch-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-fetch-blocked.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2416ae284cdc5cdf14ef73b0a76b63d75a4743d8 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-fetch-blocked.html |
| @@ -0,0 +1,16 @@ |
| +<!DOCTYPE html> |
| +<script src="/js-test-resources/testharness.js"></script> |
| +<script src="/js-test-resources/testharnessreport.js"></script> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.overridePreference("WebKitAllowRunningInsecureContent", false); |
| +} |
| + |
| +var test = async_test("Opens a HTTPS window that loads insecure data via Fetch API. We should trigger a mixed content callback and block the load."); |
|
hiroshige
2016/01/26 08:44:50
nit: ditto.
tyoshino (SeeGerritForStatus)
2016/01/29 12:36:52
Done.
|
| + |
| +window.addEventListener("message", test.step_func(function (e) { |
| + assert_equals(e.data, "DONE"); |
| + test.done(); |
| +}), false); |
| +window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-fetch.html"); |
| +</script> |