зеркало из https://github.com/mozilla/pjs.git
Bug 737307 - Don't clobber mLoadType in short-circuited loads. r=bz
--HG-- extra : rebase_source : 9ae25aa8144136f202251b61050adb6b05fe08af
This commit is contained in:
Родитель
5499d16ffe
Коммит
0452ff3b18
|
@ -8372,6 +8372,12 @@ nsDocShell::InternalLoad(nsIURI * aURI,
|
|||
rv = ScrollToAnchor(curHash, newHash, aLoadType);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Reset mLoadType to its original value once we exit this block,
|
||||
// because this short-circuited load might have started after a
|
||||
// normal, network load, and we don't want to clobber its load type.
|
||||
// See bug 737307.
|
||||
AutoRestore<PRUint32> loadTypeResetter(mLoadType);
|
||||
|
||||
mLoadType = aLoadType;
|
||||
mURIResultedInDocument = true;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче