JS XHR Upload Error When Changing Browser Tab in Firefox
Categories
(Core :: DOM: Networking, defect)
Tracking
()
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.
Comment 1•2 years ago
|
||
Can you please attach a test file that is not loading on your developing site? Thank you for your report.
Reporter | ||
Comment 2•2 years ago
|
||
(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.
Comment 3•2 years ago
|
||
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.
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!
Updated•1 year ago
|
Comment 5•1 year ago
|
||
Hi Frederico - can you provide logs and XHR setup from comment 4?
Thanks!
Comment 6•1 year ago
|
||
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.
Description
•