Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
XHR timeouts should not fire if there is an immediate network error.
https://bugs.webkit.org/show_bug.cgi?id=150577 Patch by Alex Christensen <achristensen@webkit.org> on 2015-11-09 Reviewed by Darin Adler. Source/WebCore: This fixes flakiness of http/tests/contentextensions/async-xhr-onerror.html since r191077. * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::createRequest): (WebCore::XMLHttpRequest::internalAbort): (WebCore::XMLHttpRequest::didFinishLoading): If the timeout timer has been started and we are going to immediately report a network error, then stop the timeout timer. The timeout timer sometimes fired before the network error timer if it was a very short timeout (such as 1ms). Also checks to isActive before calling stop on a timer are not necessary. LayoutTests: * platform/mac-wk2/TestExpectations: http/tests/contentextensions/async-xhr-onerror.html shouldn't be flaky any more. Canonical link: https://commits.webkit.org/169252@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
c6d3e7d
commit b3908b77168773bf75fbb7593f076c05606f99a4
Showing
4 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters