From df2276d3efaabbb19733e10a641414e0543d3aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Tue, 10 Aug 2010 10:48:20 +0200 Subject: [PATCH] temporary measure against infinite loop after browser_bug380960.js (bug 585361) --- testing/mochitest/browser-test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/mochitest/browser-test.js b/testing/mochitest/browser-test.js index bcd2d22c159c..f6be12d32781 100644 --- a/testing/mochitest/browser-test.js +++ b/testing/mochitest/browser-test.js @@ -83,6 +83,10 @@ Tester.prototype = { let msg = baseMsg.replace("{elt}", "tab") + ": " + lastTab.linkedBrowser.currentURI.spec; this.currentTest.addResult(new testResult(false, msg, "", false)); + if (gBrowser._removingTabs && gBrowser._removingTabs.indexOf(lastTab) > -1) { + gBrowser._endRemoveTab(lastTab); + continue; + } gBrowser.removeTab(lastTab); } }