From 2b64f18b04eb6c00a71f4d8f572357caaefaf533 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Mon, 11 Jul 2011 10:45:42 -0700 Subject: [PATCH] Bug 666566 - newWindowWithTabView() should wait for browser-delayed-startup-finished; r=dietrich --- browser/base/content/test/tabview/head.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/base/content/test/tabview/head.js b/browser/base/content/test/tabview/head.js index 53d25e9e511..107146b6a0a 100644 --- a/browser/base/content/test/tabview/head.js +++ b/browser/base/content/test/tabview/head.js @@ -83,9 +83,11 @@ function newWindowWithTabView(shownCallback, loadCallback, width, height) { ",width=" + winWidth); whenWindowLoaded(win, function () { - if (typeof loadCallback == "function") + if (loadCallback) loadCallback(win); + }); + whenDelayedStartupFinished(win, function () { showTabView(function () shownCallback(win), win); }); }