Closed
Bug 1195037
Opened 9 years ago
Closed 9 years ago
XMLHttpRequest causes high CPU use and incorrect shutdown after timeout
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1199957
People
(Reporter: aleth, Unassigned)
Details
In Thunderbird, an XMLHttpRequest from chrome code of the form let request = new XMLHttpRequest(); request.open("GET", url); request.onload = function () {...}; request.onerror = () => {...}; request.ontimeout = () => {...}; request.onloadend = function() {...}; request.timeout = 15000; request.send(null); correctly calls ontimeout() followed by onloadend() when it timeouts. However, it seems something sticks around, as I see CPU usage going up to around 100%, and when the app is quit, it does not shut down correctly. Instead it hangs until force-quit (OS X). Any ideas as to what is going on here?
Reporter | ||
Updated•9 years ago
|
Version: 41 Branch → 43 Branch
Reporter | ||
Comment 1•9 years ago
|
||
PS. I don't think the test content/base/test/test_XHR_timeout.html can capture this behaviour, as the server faked by content/base/test/file_XHR_timeout.sjs will always close on its own after 3s.
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to aleth [:aleth] from comment #1) > PS. I don't think the test content/base/test/test_XHR_timeout.html can > capture this behaviour, as the server faked by > content/base/test/file_XHR_timeout.sjs will always close on its own after 3s. (now lives in dom/base/test of course)
Reporter | ||
Comment 3•9 years ago
|
||
This appears to have been due to the patch landed in Bug 1170646, which has now been backed out.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•