From 7098e78188180194bb90fe8a9c719c74b786453b Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Fri, 1 Feb 2002 14:33:33 +0000 Subject: [PATCH] Obvious fix to stop deprecated winEmbed from crashing. b=120956 git-svn-id: svn://10.0.0.236/trunk@113418 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/embedding/tests/winEmbed/winEmbed.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/embedding/tests/winEmbed/winEmbed.cpp b/mozilla/embedding/tests/winEmbed/winEmbed.cpp index 352a9a33722..5cc3bc8c917 100644 --- a/mozilla/embedding/tests/winEmbed/winEmbed.cpp +++ b/mozilla/embedding/tests/winEmbed/winEmbed.cpp @@ -172,9 +172,9 @@ int main(int argc, char *argv[]) ProfileChangeObserver *observer = new ProfileChangeObserver; observer->AddRef(); - observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, observer), "profile-approve-change", PR_FALSE); - observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, observer), "profile-change-teardown", PR_FALSE); - observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, observer), "profile-after-change", PR_FALSE); + observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, observer), "profile-approve-change", PR_TRUE); + observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, observer), "profile-change-teardown", PR_TRUE); + observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, observer), "profile-after-change", PR_TRUE); InitializeWindowCreator(); @@ -1346,7 +1346,7 @@ nsresult AppCallbacks::CreateBrowserWindow(PRUint32 aChromeFlags, nsCOMPtr observerService(do_GetService("@mozilla.org/observer-service;1")); if (observerService) observerService->AddObserver(NS_STATIC_CAST(nsIObserver *, chrome), - "profile-change-teardown", PR_FALSE); + "profile-change-teardown", PR_TRUE); // if opened as chrome, it'll be made visible after the chrome has loaded. // otherwise, go ahead and show it now.