From cfc8954d0ba31931c938d8567a4a69028ff171d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Fri, 4 May 2012 18:17:25 +0200 Subject: [PATCH] Bug 751334 - Redundant TabView.init call in restoreWindow leaks the browser window when the window closes before delayedStartup was called. r=ttaubert --- browser/components/sessionstore/src/nsSessionStore.js | 5 ----- build/automationutils.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index 8a2b63ac32ed..62051ecc107e 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -2901,11 +2901,6 @@ SessionStoreService.prototype = { 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 tabstrip.smoothScroll = smoothScroll; diff --git a/build/automationutils.py b/build/automationutils.py index 29249f5d3aaf..1beeaf39e03f 100644 --- a/build/automationutils.py +++ b/build/automationutils.py @@ -459,7 +459,7 @@ class ShutdownLeakLogger(object): DOM windows (that are still around after test suite shutdown, despite running the GC) to the tests that created them and prints leak statistics. """ - MAX_LEAK_COUNT = 23 + MAX_LEAK_COUNT = 21 def __init__(self, logger): self.logger = logger