Closed Bug 1853134 Opened 2 years ago Closed 1 year ago

JS XHR Upload Error When Changing Browser Tab in Firefox

Categories

(Core :: DOM: Networking, defect)

Firefox 117
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: federico.marolla00, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0

Steps to reproduce:

I'm encountering an annoying issue on a website I'm developing. Essentially, I need to perform a direct upload via the client to a presigned S3 (Scaleway) URL using XMLHttpRequest. The process is relatively straightforward: I send the file via a PUT request to the URL, receive progress updates from the event, update the status bar, and submit the form to save the data.

The problem arises when I try to switch browser tabs; at that point, I receive various different errors, and sometimes the error doesn't occur at all. Currently, I'm experiencing this issue on Firefox desktop for macOS (v117.0.1), but it doesn't seem to be a problem on Windows. Other browsers like Chrome and Edge do not appear to have this issue.

The errors I encounter vary:

CORS_FAILED
NS_ERROR_NET_INTERRUPT

In the console, I always see: Blocked cross-origin request.

Actual results:

CORS_FAILED
NS_ERROR_NET_INTERRUPT

Expected results:

The upload continues without any issues.

Can you please attach a test file that is not loading on your developing site? Thank you for your report.

Flags: needinfo?(federico.marolla00)

(In reply to Monica Chiorean from comment #1)

Can you please attach a test file that is not loading on your developing site? Thank you for your report.

The problem occurs with any file type and any size. I'm testing with files around 100MB that I can't attach.

Flags: needinfo?(federico.marolla00)

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Networking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Networking
Product: Firefox → Core

Thanks for the report, can you provide the following to help us figure this out:

  • a minimal code sample of the client-side XHR that reproduces the issue (server-side as well if this is locally reproducible) and
  • a set of http logs of the event using about:logging to a file (you can email to necko@mozilla.com)

Thanks!

Flags: needinfo?(federico.marolla00)
Flags: needinfo?(federico.marolla00)

Hi Frederico - can you provide logs and XHR setup from comment 4?

Thanks!

Flags: needinfo?(federico.marolla00)

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(federico.marolla00)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.