Bug 664979 - Remove unnecessary QueryInterface(Ci.nsISHistory) from nsSessionStore.js; r=bz
authorEd Morley <bmo@edmorley.co.uk>
Fri, 24 Jun 2011 01:52:07 -0700
changeset 71629 484adb0cf79b
parent 71628 81d285773780
child 71664 537f0d13d96c
push id218
push userdholbert@mozilla.com
push dateFri, 24 Jun 2011 08:52:42 +0000
treeherdermozilla-inbound@484adb0cf79b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs664979
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 664979 - Remove unnecessary QueryInterface(Ci.nsISHistory) from nsSessionStore.js; r=bz
browser/components/sessionstore/src/nsSessionStore.js
--- a/browser/components/sessionstore/src/nsSessionStore.js
+++ b/browser/components/sessionstore/src/nsSessionStore.js
@@ -2928,18 +2928,17 @@ SessionStoreService.prototype = {
       browser.__SS_restore_docIdentifier = curSHEntry.docIdentifier;
 
       didStartLoad = true;
       try {
         // In order to work around certain issues in session history, we need to
         // force session history to update its internal index and call reload
         // instead of gotoIndex. See bug 597315.
         browser.webNavigation.sessionHistory.getEntryAtIndex(activeIndex, true);
-        browser.webNavigation.sessionHistory.
-          QueryInterface(Ci.nsISHistory).reloadCurrentEntry();
+        browser.webNavigation.sessionHistory.reloadCurrentEntry();
       }
       catch (ex) {
         // ignore page load errors
         aTab.removeAttribute("busy");
         didStartLoad = false;
       }
     }