Commit Graph
3 Commits
Author SHA1 Message Date
William Tanksley Jr f61bbe5b68 Fix Linux WebView login hang and User-Agent failure (#2106) (#2108)
- Set NativeWebDialog.UserAgent in AdapterCreated instead of passing a full
  User-Agent header to ApplicationNameForUserAgent (which caused WebKit2GTK
  webkit_settings_set_user_agent assertion failures on Linux).
- Set gtkArgs.ForceX11GdkBackend = true when requesting the GTK WebView
  environment.
- Recognize GTK initialization failures (InvalidOperationException 'Unable to
  initialize GTK', libgtk-3/libgdk-3 DllNotFoundException, and exceptions
  originating from GtkNativeWebViewDialog/AvaloniaGtk) in
  WebView2LoginErrorMessage so async void NativeWebDialog.Show() failures
  fault BrowserLoginAsync instead of leaving tcs.Task waiting forever,
  allowing StartAsyncInternal to fall back to LoginExternalDialog.
2026-10-26 09:46:32 -06:00
rmcrackan 65623e8e81 Catch WebKit load failures on account login. Wrap the code path that opens NativeWebDialog / WebView for Audible login in a try/catch for DllNotFoundException (and related load failures). On failure, show a short dialog: install WebKit2GTK and do not crash the app. 2026-04-15 09:41:47 -04:00
rmcrackan 5c1153e187 better error messages when webview is the problem. shouldn't appear like a scan error 2026-03-30 14:22:09 -04:00