NEW 46491
Web Inspector: "Failed to load resource" errors on opening resources with content-disposition: "attachment"
https://bugs.webkit.org/show_bug.cgi?id=46491
Summary Web Inspector: "Failed to load resource" errors on opening resources with con...
jonah
Reported 2010-09-24 11:41:57 PDT
In attempting to load resources with "Content-Disposition" header set to "attachment" I'm seeing a "Failed to load resource" error in the console. Reproduction: 1. Open a new window/tab 2. Open the console 3. Paste a link to a file attachment into the address bar (http://trac.webkit.org/raw-attachment/wiki/QtWebKit/CodeCamp200912/ARM-JIT.pdf for example) 4. Note an error in the console; "Failed to load resource" in Chrome 6.0.472.63 "Failed to load resource: Frame load interrupted" in Safari Version 5.0.2 (6533.18.5) Unable to test on latest webkit nightly due to https://bugs.webkit.org/show_bug.cgi?id=46380 I first noticed this because javascript running on the page would halt when a user triggered the "Failed to load resource" error. I'll try to put together a reliable reproduction of that behavior.
Attachments
Alexey Proskuryakov
Comment 1 2010-09-24 12:16:43 PDT
> I first noticed this because javascript running on the page would halt That might happen if one clicks on a link that results in file downloading. I think that we may have a bug about that already, but anyway, let's keep this bug solely tracking the misleading message in Web Inspector console. Please feel free to file a new bug about timers being halted, and I'll try to hunt down the duplicate later.
jonah
Comment 2 2010-10-04 14:52:31 PDT
I think I've narrowed down the js behavior I was seeing in relation to this bug. I have download links which trigger the "failed to load resource" error message. These links hava javascript onclick handlers which trigger a setTimeout timer which in turn triggers an ajax request. I believe an ajax request in flight when the "failed to load resource" error is triggered will be canceled. I'll see if I can reduce this to a simplified example.
Daniel Bates
Comment 3 2014-03-31 09:58:12 PDT
*** Bug 72357 has been marked as a duplicate of this bug. ***
Daniel Bates
Comment 4 2014-03-31 10:10:52 PDT
ojab
Comment 5 2014-05-20 06:22:58 PDT
JFYI: this happens in Ruby on Rails applications with turbolinks enabled (which is the default since RoR 4.0) when downloading attachments.
Note You need to log in before you can comment on or make changes to this bug.