mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 742120 - History records incorrectly reconciled by title + URI, not just URI. r=nalexander
This commit is contained in:
parent
9ef46f2106
commit
2d90b862c2
@ -56,7 +56,7 @@ public class AndroidBrowserHistoryRepositorySession extends AndroidBrowserReposi
|
||||
@Override
|
||||
protected String buildRecordString(Record record) {
|
||||
HistoryRecord hist = (HistoryRecord) record;
|
||||
return hist.title + hist.histURI;
|
||||
return hist.histURI;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -98,7 +98,8 @@ public class HistoryRecord extends Record {
|
||||
|
||||
/**
|
||||
* We consider two history records to be congruent if they represent the
|
||||
* same history record regardless of visits.
|
||||
* same history record regardless of visits. Titles are allowed to differ,
|
||||
* but the URI must be the same.
|
||||
*/
|
||||
@Override
|
||||
public boolean congruentWith(Object o) {
|
||||
@ -109,8 +110,7 @@ public class HistoryRecord extends Record {
|
||||
if (!super.congruentWith(other)) {
|
||||
return false;
|
||||
}
|
||||
return RepoUtils.stringsEqual(this.title, other.title) &&
|
||||
RepoUtils.stringsEqual(this.histURI, other.histURI);
|
||||
return RepoUtils.stringsEqual(this.histURI, other.histURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user