Skip to content

Commit

Permalink
Fix #5956 - Tracking protection shield icon is not updated correctly …
Browse files Browse the repository at this point in the history
…when different sites are loaded in same tab (#6004)
  • Loading branch information
nbhasin2 authored Jan 14, 2020
1 parent f23b6e5 commit 1c5d218
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,9 @@ extension BrowserViewController: WKNavigationDelegate {
guard let tab = tabManager[webView] else { return }

tab.url = webView.url
// When tab url changes after web content starts loading on the page
// We notify the contect blocker change so that content blocker status can be correctly shown on beside the URL bar
tab.contentBlocker?.notifyContentBlockingChanged()
self.scrollController.resetZoomState()

if tabManager.selectedTab === tab {
Expand Down

0 comments on commit 1c5d218

Please sign in to comment.