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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-xhr-in-main-frame.https.html

Issue 1931063004: Stop blocking 'http://127.0.0.1/' as mixed content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ugh. Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 if (window.testRunner)
8 testRunner.overridePreference("WebKitAllowRunningInsecureContent", f alse);
9
10 async_test(t => {
11 var xhr = new XMLHttpRequest();
12 xhr.onload = t.unreached_func("XHR should be blocked.");
13 xhr.onerror = t.step_func_done(e => assert_equals(e.total, 0));
14
15 xhr.open("GET", "http://example.test:8000/xmlhttprequest/resources/a ccess-control-allow-lists.php?origin=*");
16 xhr.send(null);
17 }, "XHR to http://example.test:8000/ should be blocked.");
18 </script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698