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;
@@ -41,7 +41,7 @@ final class TabStatesProvider
}
}
String _$tabStatesHash() => r'f3835029261f0e2594c804d0555a0db37171ddab';
String _$tabStatesHash() => r'778242f0b67eb7646014d0df857a3a71de214c40';
abstract class _$TabStates extends $Notifier<Map<String, TabState>> {
Map<String, TabState> build();