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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/text-track-crossorigin-expected.txt

Issue 2367583002: Check CORS policy on redirect in TextTrackLoader (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/LayoutTests/http/tests/security/text-track-crossorigin-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/text-track-crossorigin-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/text-track-crossorigin-expected.txt
index 8baa52ed77f4e541d734bdbe9b8e9e4719fe03db..46ef797b78e5f718a8423f89219874b566ec9a6d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/text-track-crossorigin-expected.txt
+++ b/third_party/WebKit/LayoutTests/http/tests/security/text-track-crossorigin-expected.txt
@@ -1,5 +1,6 @@
CONSOLE ERROR: Text track from origin 'http://localhost:8000' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
CONSOLE ERROR: Access to Text track at 'http://localhost:8000/security/resources/captions-with-access-control-headers.php?count=0' from origin 'http://127.0.0.1:8000' has been blocked by CORS 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.
+CONSOLE ERROR: Text track from origin 'http://localhost:8000' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
Tests loading cross-domain <track>.
Loading without Access-Control-Allow-Origin header, no "crossorigin" attribute on <video>
@@ -30,5 +31,12 @@ PASS: event.target should be '[object HTMLTrackElement]' and is.
PASS: trackElement.readyState should be '2' and is.
+Loading without Access-Control-Allow-Origin header, with a redirect, no "crossorigin" attribute on <video>
+EVENT(error)
+PASS: shouldLoad should be 'false' and is.
+PASS: event.target should be '[object HTMLTrackElement]' and is.
+PASS: trackElement.readyState should be '3' and is.
+
+
END OF TEST

Powered by Google App Engine
This is Rietveld 408576698