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

Unified Diff: LayoutTests/http/tests/htmlimports/redirect-cross-origin-cross-expected.txt

Issue 149643003: Improve handling of CORS redirects for some resource loads. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use canRequest() when checking redirect origin; remove redundant null checks. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/htmlimports/redirect-cross-origin-cross-expected.txt
diff --git a/LayoutTests/http/tests/htmlimports/cross-origin-expected.txt b/LayoutTests/http/tests/htmlimports/redirect-cross-origin-cross-expected.txt
similarity index 60%
copy from LayoutTests/http/tests/htmlimports/cross-origin-expected.txt
copy to LayoutTests/http/tests/htmlimports/redirect-cross-origin-cross-expected.txt
index fb58db53a6539de4bfc12d79928f936eb055669d..3813db6a5e883970dfa176d62749f8f09dce603b 100644
--- a/LayoutTests/http/tests/htmlimports/cross-origin-expected.txt
+++ b/LayoutTests/http/tests/htmlimports/redirect-cross-origin-cross-expected.txt
@@ -1,6 +1,4 @@
-CONSOLE ERROR: Imported resource from origin 'http://localhost:8080' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
-PASS target.import is null
-PASS successfullyParsed is true
+CONSOLE ERROR: Imported resource from origin 'http://localhost:8000' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
-TEST COMPLETE
+PASS Blocking access to a cross origin import including CORS domain redirect

Powered by Google App Engine
This is Rietveld 408576698