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

Disabled firefox tracking protection

  • Loading branch information
mahmoud-adam85 committed May 15, 2018
1 parent 4149659 commit 97c114fc1fbbd42bb7f50dbc14743d762865610d
Showing with 4 additions and 0 deletions.
  1. +2 −0 Client/Frontend/Browser/BrowserViewController.swift
  2. +2 −0 Client/Frontend/Browser/Tab.swift
@@ -1692,12 +1692,14 @@ extension BrowserViewController: TabDelegate {
historyStateHelper.delegate = self
tab.addContentScript(historyStateHelper, name: HistoryStateHelper.name())

/* Cliqz: disable firefox tracking protection
if #available(iOS 11, *) {
if let blocker = tab.contentBlocker as? ContentBlockerHelper {
blocker.setupTabTrackingProtection()
tab.addContentScript(blocker, name: ContentBlockerHelper.name())
}
}
*/

tab.addContentScript(FocusHelper(tab: tab), name: FocusHelper.name())
}
@@ -146,11 +146,13 @@ class Tab: NSObject {
super.init()
self.isPrivate = isPrivate

/* Cliqz: disable firefox tracking protection
if #available(iOS 11, *) {
if let appDelegate = UIApplication.shared.delegate as? AppDelegate, let profile = appDelegate.profile {
contentBlocker = ContentBlockerHelper(tab: self, profile: profile)
}
}
*/
}

class func toTab(_ tab: Tab) -> RemoteTab? {

0 comments on commit 97c114f

Please sign in to comment.