geckoview is inconsistent about title, lets bind to authority for now
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user