I'm currently developing an application where users can send files using a form through a POST request. As the file uploads, the application makes multiple GET requests to gather information about the upload progress.
Interestingly, this functionality works perfectly in Internet Explorer and Firefox, but encounters issues in Chrome and Safari.
The main problem lies in the fact that even though the XMLHttpRequest object's send() method is called, no actual requests are being made as revealed by inspecting with Fiddler.
To elaborate further, there is an event listener added to the "submit" event of the form which triggers a timeout function on the window:
window.setTimeout(startPolling, 10);
This startPolling function initiates a sequence that continuously sends GET requests to a web service for status updates in text/json format that update the user interface accordingly.
Could this issue be due to limitations or security measures specific to WebKit-based browsers? Could it possibly be a bug in Chrome? (Similar behavior is observed in Safari as well).