geckoview is inconsistent about title, lets bind to authority for now

This commit is contained in:
Fabian Freund
2025-10-01 08:54:15 +02:00
parent 5651b9255d
commit e7792a71d1
2 changed files with 3 additions and 3 deletions
@@ -47,11 +47,11 @@ class TabStates extends _$TabStates {
state[contentState.id] ?? TabState.$default(contentState.id);
final url = Uri.parse(contentState.url);
// Determine title based on priority: new non-empty title > existing title if URL unchanged > new title
// Determine title based on priority: new non-empty title > existing title if URL authority unchanged > new title
final String resolvedTitle;
if (contentState.title.isNotEmpty) {
resolvedTitle = contentState.title;
} else if (current.url == url) {
} else if (current.url.authority == url.authority) {
resolvedTitle = current.title;
} else {
resolvedTitle = contentState.title;