The existing download infrastructure fails silently when asked to "Download" a local file. We should not give the illusion that this action will work, so let's disable the menu item for local files. I have filed a separate bug (Bug 143612) to get this feature to work properly.
Created attachment 250867 [details] Patch
<rdar://problem/18858089>
Comment on attachment 250867 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250867&action=review > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:267 > + [saveToDownloadsItem setEnabled:NO]; See the "enabled = hitTestResult->allowsCopy();" down in _createActionMenuItemForTag? Do this there, that way if we add the item to multiple menus we don't have to worry about duplicating this logic. > Source/WebKit/mac/WebView/WebActionMenuController.mm:312 > + if (WebCore::protocolIs(_hitTestResult.absoluteImageURL(), "file")) ditto
Committed r182879: <http://trac.webkit.org/changeset/182879>