mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
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:
parent
24afe9ee3d
commit
c867d0930c
@ -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 = {
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user