| Summary: | [Mac] Disable "Save to Downloads" option for local files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||
| Component: | WebKit Misc. | Assignee: | Brent Fulgham <bfulgham> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bfulgham, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=143612 | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 144267 | ||||||
| Attachments: |
|
||||||
|
Description
Brent Fulgham
2015-04-15 13:06:24 PDT
Created attachment 250867 [details]
Patch
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> |