Bug 1640019 - Part 7: Remove the unused 'navigateAndRestoreByIndex' method, 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
This commit is contained in:
Nika Layzell 2020-06-15 23:24:02 +00:00
parent 24afe9ee3d
commit c867d0930c
2 changed files with 0 additions and 24 deletions

View File

@ -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 = {

View File

@ -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);
};