зеркало из https://github.com/mozilla/gecko-dev.git
Fix regression bug 197823 -- scrolling state restoration broken during history
navigation if URL includes anchor name. Remove unnecessary and deleterious flush. r+sr=dbaron
This commit is contained in:
Родитель
08f8ee6185
Коммит
8c4fcee132
|
@ -4344,7 +4344,9 @@ HTMLContentSink::ScrollToRef(PRBool aReallyScroll)
|
|||
mDocument->GetShellAt(i, getter_AddRefs(shell));
|
||||
if (shell) {
|
||||
// Scroll to the anchor
|
||||
if (aReallyScroll) {
|
||||
shell->FlushPendingNotifications(PR_FALSE);
|
||||
}
|
||||
|
||||
// Check an empty string which might be caused by the UTF-8 conversion
|
||||
if (!ref.IsEmpty()) {
|
||||
|
|
|
@ -352,7 +352,9 @@ nsXMLContentSink::ScrollToRef(PRBool aReallyScroll)
|
|||
mDocument->GetShellAt(i, getter_AddRefs(shell));
|
||||
if (shell) {
|
||||
// Scroll to the anchor
|
||||
if (aReallyScroll) {
|
||||
shell->FlushPendingNotifications(PR_FALSE);
|
||||
}
|
||||
|
||||
// Check an empty string which might be caused by the UTF-8 conversion
|
||||
if (!ref.IsEmpty())
|
||||
|
|
Загрузка…
Ссылка в новой задаче