Closed Bug 942942 Opened 11 years ago Closed 8 years ago

XMLHTTPRequest randomly fails with status code 0 during multiple requests

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: marcus.fritze, Unassigned)

References

()

Details

Attachments

(3 files)

I created a example (see URL), where you can see that the status code of a XMLHTTPRequest is sometimes 0.

Open the example and continue with your work (browse the web or do some stuff that requires a lot of CPU and HDD write read access)!

The example makes a request to the own server and the response should be 200. Sometimes when Firefox is slow or almost not responding or Firefox "calculates" some other stuff, Firefox fails with status code 0.

The request interval and the request URL can be modified in the online.js file.

This file is based on the following project: https://github.com/PixelsCommander/OnlineJS

You can test it for yourself. You only need the index.html, online.js and online.php

Info: When you run Peacekeeper Browser Benchmark, almost at the end of this test, Firefox has a lot of stuff to do and the status 0 error counts up.
Attached file index.html
index.html - example
Attached file online.js
online.js - example
Attached file online.php
online.php - example
Bug 488605 is maybe the same issue
I should also mention, that this bug also occurs on Windows systems.
That bug is hitting our product very often.
We noticed that if Firefox is working on something slow the status code 0 bug happens very often.
Marcus, I'll ask you for an NSPR log:

https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging

Please also provide the URL of the XHR that failed for you.

Thanks.
Flags: needinfo?(marcus.fritze)
Lack of progress.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(marcus.fritze)
Resolution: --- → INCOMPLETE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: