Fix regression bug 197823 -- scrolling state restoration broken during history
navigation if URL includes anchor name. Remove unnecessary and deleterious flush. r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@139643 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4344,7 +4344,9 @@ HTMLContentSink::ScrollToRef(PRBool aReallyScroll)
|
||||
mDocument->GetShellAt(i, getter_AddRefs(shell));
|
||||
if (shell) {
|
||||
// Scroll to the anchor
|
||||
shell->FlushPendingNotifications(PR_FALSE);
|
||||
if (aReallyScroll) {
|
||||
shell->FlushPendingNotifications(PR_FALSE);
|
||||
}
|
||||
|
||||
// Check an empty string which might be caused by the UTF-8 conversion
|
||||
if (!ref.IsEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user