RESOLVED FIXED 143794
[Mac] Disable "Save to Downloads" option for local files
https://bugs.webkit.org/show_bug.cgi?id=143794
Summary [Mac] Disable "Save to Downloads" option for local files
Brent Fulgham
Reported 2015-04-15 13:06:24 PDT
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.
Attachments
Patch (7.46 KB, patch)
2015-04-15 15:05 PDT, Brent Fulgham
thorton: review+
Brent Fulgham
Comment 1 2015-04-15 15:05:03 PDT
Brent Fulgham
Comment 2 2015-04-15 15:06:13 PDT
Tim Horton
Comment 3 2015-04-15 15:10:18 PDT
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
Brent Fulgham
Comment 4 2015-04-15 20:58:51 PDT
Note You need to log in before you can comment on or make changes to this bug.