Bug 46491
Summary: | Web Inspector: "Failed to load resource" errors on opening resources with content-disposition: "attachment" | ||
---|---|---|---|
Product: | WebKit | Reporter: | jonah |
Component: | Web Inspector | Assignee: | 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 |
jonah
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
> 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
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
*** Bug 72357 has been marked as a duplicate of this bug. ***
Daniel Bates
<rdar://problem/12743141>
ojab
JFYI: this happens in Ruby on Rails applications with turbolinks enabled (which is the default since RoR 4.0) when downloading attachments.