Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IB2-368] Remove "download link" option

  • Loading branch information
mahmoud-adam85 committed Aug 7, 2018
1 parent 2197925 commit a8666612519fea4f5029aee8b31c7a01c3c7db9d
Showing with 2 additions and 0 deletions.
  1. +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() {

0 comments on commit a866661

Please sign in to comment.