Tabs: Fix issue where tab sometimes has the wrong favicon after a redirect.
This commit is contained in:
@@ -52,6 +52,14 @@ extension BrowserViewController: WKNavigationDelegate, WKUIDelegate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func webView(_ webView: WKWebView, didReceiveServerRedirectForProvisionalNavigation navigation: WKNavigation!) {
|
||||||
|
// We got rugged!!!!!! Update the favicon again.
|
||||||
|
if let url = webView.url {
|
||||||
|
// Start requesting favicon
|
||||||
|
tab.updateFaviconForURL(url)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
|
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
|
||||||
toolbarController.urlBar.loadProgress = .complete
|
toolbarController.urlBar.loadProgress = .complete
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user