Make URL bar FR when creating new tab, make errors local to tabs only
This commit is contained in:
@@ -10,7 +10,7 @@ import WebKit
|
||||
extension BrowserViewController: WKNavigationDelegate, WKUIDelegate
|
||||
{
|
||||
func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
|
||||
loadError = nil
|
||||
tab.loadError = nil
|
||||
|
||||
// Check to make sure we have connected to the web content process
|
||||
if !tab.bridge.webContentProcessConnected {
|
||||
@@ -99,11 +99,15 @@ extension BrowserViewController: WKNavigationDelegate, WKUIDelegate
|
||||
}
|
||||
|
||||
func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
|
||||
self.loadError = error
|
||||
if webView == tab.webView {
|
||||
tab.loadError = error
|
||||
}
|
||||
}
|
||||
|
||||
func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error) {
|
||||
self.loadError = error
|
||||
if webView == tab.webView {
|
||||
tab.loadError = error
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: WKUIDelegate
|
||||
|
||||
Reference in New Issue
Block a user