Bug 562545 - Shift-reload keeps the scroll position stored [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Fri, 30 Apr 2010 16:53:25 -0400
changeset 66194 3c2a8dc66f0ffcda9eafd699822347450ce167f5
parent 66193 830ca7ed18981ee55e780c57607c4106ee2adf12
child 66195 075714451ba7063a696ecf5d035dacafc58c507f
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs562545
Bug 562545 - Shift-reload keeps the scroll position stored [r=mfinkle]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -824,16 +824,19 @@ var BrowserUI = {
       case "cmd_forward":
         browser.goForward();
         break;
       case "cmd_reload":
         browser.reload();
         break;
       case "cmd_forceReload":
       {
+        // Simulate a new page
+        browser.lastSpec = null;
+
         const reloadFlags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY |
                             Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
         browser.reloadWithFlags(reloadFlags);
         break;
       }
       case "cmd_stop":
         browser.stop();
         break;