cmux/Sources/Panels
Austin Wang cdf8d367b2
Fix browser back navigation history handoff (#1897)
* Add regression test for browser back history

* Fix browser back history handoff

* Fix browser tab favicon not updating on navigation

Two issues caused stale or missing favicons in browser tabs:

1. KVO race: The isLoading observer read webView.isLoading inside a deferred
   Task instead of capturing the KVO change value at observation time. For fast
   navigations (back-forward cache), isLoading flips true→false before the Task
   runs, so handleWebViewLoadingChanged(true) was never called and the old
   favicon was never cleared.

2. SPA favicon discovery: Sites that inject <link rel="icon"> via JavaScript
   (e.g. React apps) had no favicon link in the DOM when didFinish fired. The
   fallback to /favicon.ico often 404'd, leaving the globe icon permanently.
   Now retries the JS query after 600ms to give client-side scripts time to
   add the tag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:11:56 -07:00
..
BrowserPanel.swift Fix browser back navigation history handoff (#1897) 2026-03-20 21:11:56 -07:00
BrowserPanelView.swift Rename "Import From Browser" to "Import Browser Data" (#1672) 2026-03-17 22:07:19 -07:00
BrowserPopupWindowController.swift Share browser context with OAuth popups (#1600) 2026-03-20 03:57:36 -07:00
CmuxWebView.swift Fix browser image copy pasteboard data (#1850) 2026-03-19 22:20:09 -07:00
MarkdownPanel.swift Add settings to disable pane ring and flash (#1217) 2026-03-13 03:52:56 -07:00
MarkdownPanelView.swift Add optional single-click focus for inactive panes (#1796) 2026-03-19 01:01:10 -07:00
Panel.swift Add browser find focus debug logs (#1162) 2026-03-10 19:31:52 -07:00
PanelContentView.swift Fix terminal pane drag/drop handoff delay (#1837) 2026-03-19 20:37:32 -07:00
TerminalPanel.swift Merge remote-tracking branch 'origin/main' into pr-ssh-stack-main 2026-03-13 17:56:38 -07:00
TerminalPanelView.swift Fix terminal pane drag/drop handoff delay (#1837) 2026-03-19 20:37:32 -07:00