Bug 835241 - Reload button reloads cached copy r=bnicholson

This commit is contained in:
Mark Finkle 2013-01-28 19:14:42 -05:00
parent eeae54b2b6
commit 4eaad7f8ef

View File

@ -1112,7 +1112,17 @@ var BrowserApp = {
break;
case "Session:Reload":
browser.reload();
// Try to use the session history to reload so that framesets are
// handled properly. If the window has no session history, fall back
// to using the web navigation's reload method.
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY | Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
let webNav = browser.webNavigation;
try {
let sh = webNav.sessionHistory;
if (sh)
webNav = sh.QueryInterface(Ci.nsIWebNavigation);
} catch (e) {}
webNav.reload(flags);
break;
case "Session:Stop":