mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 835241 - Reload button reloads cached copy r=bnicholson
This commit is contained in:
parent
eeae54b2b6
commit
4eaad7f8ef
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user