Bug 46491

Summary: Web Inspector: "Failed to load resource" errors on opening resources with content-disposition: "attachment"
Product: WebKit Reporter: jonah
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, darin, dbates, edwardjsabol, graouts, inspector-bugzilla-changes, jonowells, manday, m.goleb+bugzilla, ojab, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

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.


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
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.