From 8ff3b3da5344c399603bd45f4b4324bd6219ac9e Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Tue, 28 Jun 2005 02:51:04 +0000 Subject: [PATCH] Fix fastback to not leave the documents-loading counter unbalanced, which would lead to not using the performance-favoring event loop hint after the first fastback. Bug 298794, r+sr=darin, a=chase. git-svn-id: svn://10.0.0.236/trunk@175193 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 7ee911b3211..eb9c0b74c9c 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -5299,6 +5299,11 @@ nsDocShell::RestorePresentation(nsISHEntry *aSHEntry, PRBool aSavePresentation, } } + // Tell the event loop to favor plevents over user events, see comments + // in CreateContentViewer. + if (++gNumberOfDocumentsLoading == 1) + PL_FavorPerformanceHint(PR_TRUE, NS_EVENT_STARVATION_DELAY_HINT); + SetCurrentURI(uri); // Restore the page title. Re-setting the current title on the document