blob: fe4508247ff066fd4d46602c5c1d7af2f0f7c006 [file] [log] [blame]
CONSOLE WARNING: line 20: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Test that sync XMLHttpRequest GET succeeds.
Status: 200
Response: Hello
Test that sync XMLHttpRequest POST fails.
Received exception, code: 19, name: NetworkError, message: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'blob:file:///UUID': 'GET' is the only method allowed for 'blob:' URLs.
Test that sync XMLHttpRequest GET fails after the blob URL is revoked.
Status: 404
Response:
Test that async XMLHttpRequest GET succeeds.
Status: 200
Response: Hello
Test that async XMLHttpRequest POST fails.
Error event is dispatched
Test the slicing the blob response doesn't crash the browser.
Status: 200
First byte of response: H
Test that async XMLHttpRequest GET fails after the blob URL is revoked.
Status: 404
Response:
DONE