Skip to content

Commit

Permalink
Fix wrong URL displayed for auth dialog (#3307)
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx authored Sep 3, 2024
1 parent de822ff commit defd5a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DuckDuckGo/TabViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,9 @@ extension TabViewController: WKNavigationDelegate {
return
}

// Update the address bar instantly when page presents a dialog to prevent spoofing attacks
// https://app.asana.com/0/414709148257752/1208060693227754/f
self.url = webView.url
let isHttps = protectionSpace.protocol == "https"
let alert = BasicAuthenticationAlert(host: protectionSpace.host,
isEncrypted: isHttps,
Expand Down

0 comments on commit defd5a1

Please sign in to comment.