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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/files/apply-blob-url-to-xhr-expected.txt

Issue 2940553003: Failure in reading Blob URL should results in network error
Patch Set: . Created 3 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
1 CONSOLE WARNING: line 20: Synchronous XMLHttpRequest on the main thread is depre cated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. 1 CONSOLE WARNING: line 20: Synchronous XMLHttpRequest on the main thread is depre cated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
2 2
3 Test that sync XMLHttpRequest GET succeeds. 3 Test that sync XMLHttpRequest GET succeeds.
4 Status: 200 4 Status: 200
5 Response: Hello 5 Response: Hello
6 Test that sync XMLHttpRequest POST fails. 6 Test that sync XMLHttpRequest POST fails.
7 Received exception, code: 19, name: NetworkError, message: Failed to execute 'se nd' on 'XMLHttpRequest': Failed to load 'blob:file:///UUID': 'GET' is the only m ethod allowed for 'blob:' URLs. 7 Received exception, code: 19, name: NetworkError, message: Failed to execute 'se nd' on 'XMLHttpRequest': Failed to load 'blob:file:///UUID': 'GET' is the only m ethod allowed for 'blob:' URLs.
8 Test that sync XMLHttpRequest GET fails after the blob URL is revoked. 8 Test that sync XMLHttpRequest GET fails after the blob URL is revoked.
9 Status: 404 9 Received exception, code: 19, name: NetworkError, message: Failed to execute 'se nd' on 'XMLHttpRequest': Failed to load 'blob:file:///UUID'.
10 Response:
11 Test that async XMLHttpRequest GET succeeds. 10 Test that async XMLHttpRequest GET succeeds.
12 Status: 200 11 Status: 200
13 Response: Hello 12 Response: Hello
14 Test that async XMLHttpRequest POST fails. 13 Test that async XMLHttpRequest POST fails.
15 Error event is dispatched 14 Error event is dispatched
16 Test the slicing the blob response doesn't crash the browser. 15 Test the slicing the blob response doesn't crash the browser.
17 Status: 200 16 Status: 200
18 First byte of response: H 17 First byte of response: H
19 Test that async XMLHttpRequest GET fails after the blob URL is revoked. 18 Test that async XMLHttpRequest GET fails after the blob URL is revoked.
20 Status: 404 19 Error event is dispatched
21 Response:
22 DONE 20 DONE
23 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698