зеркало из https://github.com/mozilla/gecko-dev.git
Bug 881087. Skip unnecessary work resetting visited state on links if the base URI only changes its fragment identifier. r=smaug
This commit is contained in:
Родитель
2e1a03a7a3
Коммит
e9e910b57d
|
@ -2750,8 +2750,11 @@ nsDocument::SetDocumentURI(nsIURI* aURI)
|
|||
nsIURI* newBase = GetDocBaseURI();
|
||||
|
||||
bool equalBases = false;
|
||||
// Changing just the ref of a URI does not change how relative URIs would
|
||||
// resolve wrt to it, so we can treat the bases as equal as long as they're
|
||||
// equal ignoring the ref.
|
||||
if (oldBase && newBase) {
|
||||
oldBase->Equals(newBase, &equalBases);
|
||||
oldBase->EqualsExceptRef(newBase, &equalBases);
|
||||
}
|
||||
else {
|
||||
equalBases = !oldBase && !newBase;
|
||||
|
|
Загрузка…
Ссылка в новой задаче