Bug 46491 - Web Inspector: "Failed to load resource" errors on opening resources with content-disposition: "attachment"
Summary: Web Inspector: "Failed to load resource" errors on opening resources with con...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 72357 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-24 11:41 PDT by jonah
Modified: 2016-12-13 15:32 PST (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jonah 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.
Comment 1 Alexey Proskuryakov 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.
Comment 2 jonah 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.
Comment 3 Daniel Bates 2014-03-31 09:58:12 PDT
*** Bug 72357 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Bates 2014-03-31 10:10:52 PDT
<rdar://problem/12743141>
Comment 5 ojab 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.