Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Feedback related with security
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Jul 15, 2021
1 parent 5b4f53a commit d60f963
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/Application/Delegates/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ extension AppDelegate {
if let userInfo = userActivity.userInfo,
let urlString = userInfo[CSSearchableItemActivityIdentifier] as? String,
let url = URL(string: urlString) {
browserViewController.switchToTabForURLOrOpen(url, isPrivileged: true)
browserViewController.switchToTabForURLOrOpen(url, isPrivileged: false)
return true
}
case ActivityType.newTab.identifier:
Expand Down Expand Up @@ -677,7 +677,7 @@ extension AppDelegate {
return false
}

browserViewController.switchToTabForURLOrOpen(url, isPrivileged: true)
browserViewController.switchToTabForURLOrOpen(url, isPrivileged: false)
return true
}

Expand Down
4 changes: 4 additions & 0 deletions Client/Application/Shortcuts/ActivityShortcutManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ class ActivityShortcutManager: NSObject {
// MARK: Intent Donation Methods

public func donateCustomIntent(for type: IntentType, with urlString: String) {
guard !PrivateBrowsingManager.shared.isPrivateBrowsing else {
return
}

let intent = createCustomIntent(for: type, with: urlString)

let interaction = INInteraction(intent: intent, response: nil)
Expand Down

0 comments on commit d60f963

Please sign in to comment.