зеркало из https://github.com/mozilla/pjs.git
Patch to bug # 179633. Return the proper result from ScrollIfAnchor() to the
caller to take care of traversals to invalid targets in a page. r=adamlock, sr=alecf
This commit is contained in:
Родитель
d4d9520f0b
Коммит
6c9f9af676
|
@ -5800,10 +5800,10 @@ nsDocShell::ScrollIfAnchor(nsIURI * aURI, PRBool * aWasAnchor, PRUint32 aLoadTyp
|
|||
if (aLoadType == LOAD_HISTORY || aLoadType == LOAD_RELOAD_NORMAL)
|
||||
return rv;
|
||||
//An empty anchor. Scroll to the top of the page.
|
||||
SetCurScrollPosEx(0, 0);
|
||||
rv = SetCurScrollPosEx(0, 0);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче