diff --git a/docshell/test/unit/test_nsIDownloadHistory.js b/docshell/test/unit/test_nsIDownloadHistory.js index b89e959fa87..0c05763cca8 100644 --- a/docshell/test/unit/test_nsIDownloadHistory.js +++ b/docshell/test/unit/test_nsIDownloadHistory.js @@ -91,6 +91,9 @@ function run_test() return; } + // Needed to properly setup and shutdown the profile. + do_get_profile(); + Services.prefs.setBoolPref("places.history.enabled", true); for (var i = 0; i < tests.length; i++)