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

Commit

Permalink
Fix #7673: Update the status bar overlay appropriately on internal pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Jul 11, 2023
1 parent 0d9aa03 commit 8f319a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Brave/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,8 @@ public class BrowserViewController: UIViewController {

func updateStatusBarOverlayColor() {
defer { setNeedsStatusBarAppearanceUpdate() }
guard isUsingBottomBar, let color = tabManager.selectedTab?.webView?.sampledPageTopColor else {
guard isUsingBottomBar, let tab = tabManager.selectedTab, tab.url.map(InternalURL.isValid) == false,
let color = tab.webView?.sampledPageTopColor else {
if PrivateBrowsingManager.shared.isPrivateBrowsing {
statusBarOverlay.backgroundColor = .privateModeBackground
} else {
Expand Down

0 comments on commit 8f319a3

Please sign in to comment.