Bug 751334 - Redundant TabView.init call in restoreWindow leaks the browser window when the window closes before delayedStartup was called. r=ttaubert

This commit is contained in:
Dão Gottwald
2012-05-04 18:17:25 +02:00
parent 29927b6ba9
commit 3367cbbb3e
2 changed files with 1 additions and 6 deletions

View File

@@ -2901,11 +2901,6 @@ SessionStoreService.prototype = {
ScratchpadManager.restoreSession(aState.scratchpads); ScratchpadManager.restoreSession(aState.scratchpads);
} }
// This will force the keypress listener that Panorama has to attach if it
// isn't already. This will be the case if tab view wasn't entered or there
// were only visible tabs when TabView.init was first called.
aWindow.TabView.init();
// set smoothScroll back to the original value // set smoothScroll back to the original value
tabstrip.smoothScroll = smoothScroll; tabstrip.smoothScroll = smoothScroll;

View File

@@ -459,7 +459,7 @@ class ShutdownLeakLogger(object):
DOM windows (that are still around after test suite shutdown, despite running DOM windows (that are still around after test suite shutdown, despite running
the GC) to the tests that created them and prints leak statistics. the GC) to the tests that created them and prints leak statistics.
""" """
MAX_LEAK_COUNT = 23 MAX_LEAK_COUNT = 21
def __init__(self, logger): def __init__(self, logger):
self.logger = logger self.logger = logger