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

Side by Side Diff: LayoutTests/http/tests/security/text-track-crossorigin-expected.txt

Issue 137983010: (Re)organize handling of CORS access control during resource loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: HTMLImportLoader no longer needs a ResourceFetcher Created 6 years, 11 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
1 CONSOLE ERROR: Cross-origin text track load denied by Cross-Origin Resource Shar ing policy. 1 CONSOLE ERROR: Text track from origin 'http://localhost:8000' has been blocked f rom loading: Not at same origin as the document, and parent of track element doe s not have a 'crossorigin' attribute. Origin 'http://127.0.0.1:8000' is therefor e not allowed access.
2 CONSOLE ERROR: Cross-origin text track load denied by Cross-Origin Resource Shar ing policy. 2 CONSOLE ERROR: Text track from origin 'http://localhost:8000' has been blocked f rom loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Or igin' header is present on the requested resource. Origin 'http://127.0.0.1:8000 ' is therefore not allowed access.
3 Tests loading cross-domain <track>. 3 Tests loading cross-domain <track>.
4 4
5 Loading without Access-Control-Allow-Origin header, no "crossorigin" attribute o n <video> 5 Loading without Access-Control-Allow-Origin header, no "crossorigin" attribute o n <video>
6 EVENT(error) 6 EVENT(error)
7 PASS: shouldLoad should be 'false' and is. 7 PASS: shouldLoad should be 'false' and is.
8 PASS: event.target should be '[object HTMLTrackElement]' and is. 8 PASS: event.target should be '[object HTMLTrackElement]' and is.
9 PASS: trackElement.readyState should be '3' and is. 9 PASS: trackElement.readyState should be '3' and is.
10 10
11 11
12 Loading without Access-Control-Allow-Origin header, setting video.crossorigin to "anonymous" 12 Loading without Access-Control-Allow-Origin header, setting video.crossorigin to "anonymous"
(...skipping 12 matching lines...) Expand all
25 25
26 Loading with Access-Control-Allow-Origin and Access-Control-Allow-Credentials he aders, setting video.crossorigin to "use-credentials" 26 Loading with Access-Control-Allow-Origin and Access-Control-Allow-Credentials he aders, setting video.crossorigin to "use-credentials"
27 EVENT(load) 27 EVENT(load)
28 PASS: shouldLoad should be 'true' and is. 28 PASS: shouldLoad should be 'true' and is.
29 PASS: event.target should be '[object HTMLTrackElement]' and is. 29 PASS: event.target should be '[object HTMLTrackElement]' and is.
30 PASS: trackElement.readyState should be '2' and is. 30 PASS: trackElement.readyState should be '2' and is.
31 31
32 32
33 END OF TEST 33 END OF TEST
34 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698