Bug 1039500: Fix remaining callers of tabbrowser._getTabForBrowser on a CLOSED TREE. r=Unfocused

This commit is contained in:
Dave Townsend
2014-10-09 16:26:11 -07:00
parent f335645ba4
commit bff0605a13
6 changed files with 6 additions and 6 deletions

View File

@@ -788,7 +788,7 @@ function gKeywordURIFixup({ target: browser, data: fixupInfo }) {
// Called when a docshell has attempted to load a page in an incorrect process.
// This function is responsible for loading the page in the correct process.
function RedirectLoad({ target: browser, data }) {
let tab = gBrowser._getTabForBrowser(browser);
let tab = gBrowser.getTabForBrowser(browser);
// Flush the tab state before getting it
TabState.flush(browser);
let tabState = JSON.parse(SessionStore.getTabState(tab));