[Webkit-unassigned] [Bug 220621] iOS: requests started during pending download are cancelled or fail due to "access control checks" error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 17 09:08:56 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220621

--- Comment #3 from Oliver Joseph Ash <oliverjash at gmail.com> ---
Could anyone give us any clue what might be going on here? If we had some idea what exactly the problem was, it might help us find a usable/reliable workaround.

I had hoped we could workaround this by scheduling a window focus event handler when the download link is clicked, and then making the requests inside of this event handler. If I understand correctly, the download prompt/modal/dialog will blur the window and then the window will focus again when the prompt is closed. Unfortunately I've only had limited success with this—if the download response has a `content-type` response header to something other than `text/html`, e.g. something like `text/plain`, then it fails with the "access control checks" error again.


---

More observations:

- If we use a longer delay like 2500ms instead of 10ms, the requests succeed.
- If we do that *and* set the download response  `content-type` response header to something *other* than `text/html`, e.g. something like `text/plain`, then it fails with the "access control checks" error again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210117/ef32b336/attachment-0001.htm>


More information about the webkit-unassigned mailing list