Skip to content

Commit

Permalink
Bug 1640019 - Part 7: Remove the unused 'navigateAndRestoreByIndex' m…
Browse files Browse the repository at this point in the history
…ethod, r=Gijs

This method was used by GroupedSHistory for prerendering, and was missed when we
ripped out the incomplete code.

Differential Revision: https://phabricator.services.mozilla.com/D78975
  • Loading branch information
mystor committed Jun 15, 2020
1 parent a00ac13 commit 533c276
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
16 changes: 0 additions & 16 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5494,22 +5494,6 @@ var XULBrowserWindow = {
}
this.onStatusChange(gBrowser.webProgress, null, 0, aMessage);
},

navigateAndRestoreByIndex: function XWB_navigateAndRestoreByIndex(
aBrowser,
aIndex
) {
let tab = gBrowser.getTabForBrowser(aBrowser);
if (tab) {
SessionStore.navigateAndRestore(tab, {}, aIndex);
return;
}

throw new Error(
"Trying to navigateAndRestore a browser which was " +
"not attached to this tabbrowser is unsupported"
);
},
};

var LinkTargetDisplay = {
Expand Down
8 changes: 0 additions & 8 deletions xpfe/appshell/nsIXULBrowserWindow.idl
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,5 @@ interface nsIXULBrowserWindow : nsISupports
* Return the number of tabs in this window.
*/
uint32_t getTabCount();

/**
* Navigate the browser to the given history index after restoring the full history
* from SessionStore. If the browser is currently in GroupedSHistory mode, it will
* be reverted to a non-grouped history mode. If a process change is required to
* perform the load, this will also occur.
*/
void navigateAndRestoreByIndex(in nsIBrowser aBrowser, in long aIndex);
};

0 comments on commit 533c276

Please sign in to comment.