DescriptionDon't dispatch events when XHR is set to sync mode
Any of readystatechange, progress, abort, error, timeout and loadend
event are not specified to be dispatched in sync mode in the latest
spec. Just an exception corresponding to the failure is thrown.
Clean up for readability done in this CL
- factor out dispatchEventAndLoadEnd calling code
- make didTimeout() private
- give error handling methods more descriptive names
- set m_exceptionCode in failure type specific methods
-- Note that for didFailRedirectCheck, m_exceptionCode was not set
in networkError(), but was set at the end of createRequest()
This CL is prep for fixing crbug.com/292422
BUG=292422
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158046
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Updated layout tests #Patch Set 4 : Put back internalAbort() #Patch Set 5 : Put back internalAbort() 2 #Patch Set 6 : Revert change on network-preflight-options.html #Messages
Total messages: 5 (0 generated)
|