blob: d7cb951d6a6f46333ba411e1ce0508d7ace7604f [file] [log] [blame]
CONSOLE WARNING: line 18: 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/.
CONSOLE ERROR: line 35: Access to XMLHttpRequest at 'http://localhost:8000/xmlhttprequest/xmlhttprequest-sync-vs-async-assertion-failure.html' 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.
Test for:
bug 40996: Progress event should not be fired during synchronous XMLHttpRequest;
bug 17502: Assertion failure when trying to restart a sync XMLHttpRequest as an async one from onreadystatechange.
Step 1: Same origin request
readystatechange 4
load
loadend
Step 2: Cross origin request, disallowed
NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/xmlhttprequest-sync-vs-async-assertion-failure.html'.
Step 3: Cross origin request, allowed
readystatechange 4
load
loadend
Step 4: Cross origin request, check that preflight isn't attempted
readystatechange 4
load
loadend