Bug 737307 - Don't clobber mLoadType in short-circuited loads. r=bz

--HG--
extra : rebase_source : 9ae25aa8144136f202251b61050adb6b05fe08af
This commit is contained in:
Justin Lebar 2012-03-29 11:27:13 -07:00
Родитель 5499d16ffe
Коммит 0452ff3b18
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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;