From cd44910b63cc3b2a31849959b0e60422edd4c848 Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Tue, 30 Sep 2008 07:20:18 +0100 Subject: [PATCH] Bug 457634: browser_autocomplete.js test doesn't clean up after itself. r=gavin --- browser/base/content/test/browser_autodiscovery.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/base/content/test/browser_autodiscovery.js b/browser/base/content/test/browser_autodiscovery.js index de1165ab9bb..9eacf8a7a4a 100644 --- a/browser/base/content/test/browser_autodiscovery.js +++ b/browser/base/content/test/browser_autodiscovery.js @@ -122,6 +122,10 @@ function runMultipleEnginesTestAndFinalize() { is(browser.engines[0].uri, "http://first.mozilla.com/search.xml", "first engine wins"); gTestPage.close(); + + // Reset the default link handler + DOMLinkHandler.handleEvent = gBrowserHandler; + finish(); }