Closed Bug 1558848 Opened 6 years ago Closed 6 years ago

Starting file download hangs or terminates pending ajax requests

Categories

(Core :: Networking, defect)

Desktop
All
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox67 --- affected
firefox68 --- affected
firefox69 --- affected

People

(Reporter: oakleypeavler, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36

Steps to reproduce:

I've created a simple demo here to show the issue:
https://codesandbox.io/s/goofy-maxwell-9q68l

Clicking "Make a new ajax request" creates an ajax request.
The counter at the top displays the number of pending requests.
Clicking the 100MB.bin link initiates a file download.

Click the "Make a new ajax request" button, and while at least one request is still pending, watch the Network tab of the developer tools and start the file download by clicking on the "100MB.bin" link.

Actual results:

In the nightly 69.0a1 and latest stable 67.0.2 releases of Firefox, all pending requests hang and never resolve. In the 60.6.2 ESR my company currently uses, the requests fail entirely.

In Chrome, starting the file download has no effect on the pending requests and they resolve as expected.

Expected results:

Starting a file download should not break pending ajax requests. Both processes should work concurrently.

Hi @oakleypeavler, here are the results of testing the issue:
[Platform affected]: Mac OS X, Ubuntu 18.04, Windows 10, Windows 7
[Environment]: latest nightly 69.0a1, beta 68.0b11, release 67.0.3

on all cases the issue can be reproduced. Invoking an ajax request then clicking on the "100MB.bin" => the number of pending request won't register the request made. As a correlation inspect the "time" specified at the row 3 form index.js & "Network" tab from Inspector => the pending request number should be modified after that.
I will set a component for it and if isn't the proper one please fell free to change it.
Thanks.

Component: Untriaged → Networking
Product: Firefox → Core

Hello Reporter,
It would be very helpful if you could find the exact regression range.
https://mozilla.github.io/mozregression/quickstart.html

Thanks!

Flags: needinfo?(oakleypeavler)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → Desktop
Version: 67 Branch → Trunk
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE

Stop tracking this

Flags: needinfo?(oakleypeavler)
You need to log in before you can comment on or make changes to this bug.