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
|
@Override
|
||||||
protected String buildRecordString(Record record) {
|
protected String buildRecordString(Record record) {
|
||||||
HistoryRecord hist = (HistoryRecord) record;
|
HistoryRecord hist = (HistoryRecord) record;
|
||||||
return hist.title + hist.histURI;
|
return hist.histURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -98,7 +98,8 @@ public class HistoryRecord extends Record {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* We consider two history records to be congruent if they represent the
|
* 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
|
@Override
|
||||||
public boolean congruentWith(Object o) {
|
public boolean congruentWith(Object o) {
|
||||||
@ -109,8 +110,7 @@ public class HistoryRecord extends Record {
|
|||||||
if (!super.congruentWith(other)) {
|
if (!super.congruentWith(other)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return RepoUtils.stringsEqual(this.title, other.title) &&
|
return RepoUtils.stringsEqual(this.histURI, other.histURI);
|
||||||
RepoUtils.stringsEqual(this.histURI, other.histURI);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user