From 95ad7c0a9301f0a5cfd561cf97a9413395f77fea Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Tue, 10 Jan 2012 16:23:02 +0100 Subject: [PATCH] Bug 711937. (Cv1) Send 'quit-application' too (Copied with bug 715554). f=jh r=neil. --- .../common/places/tests/unit/test_clearHistory_shutdown.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/suite/common/places/tests/unit/test_clearHistory_shutdown.js b/suite/common/places/tests/unit/test_clearHistory_shutdown.js index b1a8f4d7bb..9b02544150 100644 --- a/suite/common/places/tests/unit/test_clearHistory_shutdown.js +++ b/suite/common/places/tests/unit/test_clearHistory_shutdown.js @@ -144,10 +144,12 @@ function run_test() { // Simulate an exit so that Sanitizer's init method checkSettings() is called. print("Simulate 'quit-application-granted' too for SeaMonkey."); - Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService). - notifyObservers(null, "quit-application-granted", null); + Services.obs.notifyObservers(null, "quit-application-granted", null); shutdownPlaces(); + + // Shutdown the download manager. + Services.obs.notifyObservers(null, "quit-application", null); } function getDistinctNotifications() {