| OLD | NEW |
| 1 CONSOLE WARNING: Avoid synchronous requests as it hampers user experience due to
unresponsiveness of the web page. Refer https://xhr.spec.whatwg.org/#sync-warni
ng. |
| 1 | 2 |
| 2 Bug 22475: REGRESSION: Async XMLHttpRequest never finishes on nonexistent files
anymore | 3 Bug 22475: REGRESSION: Async XMLHttpRequest never finishes on nonexistent files
anymore |
| 3 | 4 |
| 4 In both cases, readyState 4 should be reached, and error handler should be invok
ed. | 5 In both cases, readyState 4 should be reached, and error handler should be invok
ed. |
| 5 | 6 |
| 6 Doing an XHR to a nonexistent file. | 7 Doing an XHR to a nonexistent file. |
| 7 ReadyState handler: readyState = 1 | 8 ReadyState handler: readyState = 1 |
| 8 ReadyState handler: readyState = 4 | 9 ReadyState handler: readyState = 4 |
| 9 Error handler: readyState = 4 | 10 Error handler: readyState = 4 |
| 10 | 11 |
| 11 Doing an XHR to a directory. | 12 Doing an XHR to a directory. |
| 12 ReadyState handler: readyState = 1 | 13 ReadyState handler: readyState = 1 |
| 13 ReadyState handler: readyState = 4 | 14 ReadyState handler: readyState = 4 |
| 14 | 15 |
| OLD | NEW |