Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[IB2-368] Remove "download link" option
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+2
−0
Client/Frontend/Browser/BrowserViewController.swift
|
|
@@ -2555,13 +2555,15 @@ extension BrowserViewController: ContextMenuHelperDelegate { |
|
|
} |
|
|
actionSheetController.addAction(openNewPrivateTabAction, accessibilityIdentifier: "linkContextMenu.openInNewPrivateTab") |
|
|
|
|
|
/* Cliqz: remove download link option from the long press context menu |
|
|
let downloadTitle = NSLocalizedString("Download Link", comment: "Context menu item for downloading a link URL") |
|
|
let downloadAction = UIAlertAction(title: downloadTitle, style: .default) { _ in |
|
|
self.pendingDownloadWebView = currentTab.webView |
|
|
currentTab.webView?.evaluateJavaScript("window.__firefox__.download('\(url.absoluteString)', '\(UserScriptManager.securityToken)')") |
|
|
UnifiedTelemetry.recordEvent(category: .action, method: .tap, object: .downloadLinkButton) |
|
|
} |
|
|
actionSheetController.addAction(downloadAction, accessibilityIdentifier: "linkContextMenu.download") |
|
|
*/ |
|
|
|
|
|
// Cliqz: Added Action handler for the long press to download Youtube videos |
|
|
if url.isYoutubeURL() { |
|
|
|