зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1117833 - Cancel pending visit and save immediately when title is updated. r=snorp
MozReview-Commit-ID: 3eSyovpfO3A --HG-- extra : rebase_source : 7c71f099f8a138de9a9bedf2fc57d84209bee434
This commit is contained in:
Родитель
0ce4237bb7
Коммит
c8ba465303
|
@ -287,6 +287,10 @@ nsAndroidHistory::SetURITitle(nsIURI *aURI, const nsAString& aTitle)
|
|||
nsAutoCString uri;
|
||||
nsresult rv = aURI->GetSpec(uri);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (RemovePendingVisitURI(aURI)) {
|
||||
// We have a title, so aURI isn't a redirect, so save the visit now before setting the title.
|
||||
SaveVisitURI(aURI);
|
||||
}
|
||||
NS_ConvertUTF8toUTF16 uriString(uri);
|
||||
widget::GeckoAppShell::SetURITitle(uriString, aTitle);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче