Followup fix for bug 371200. Don't pass in inconsistent closure data to the pref observer. r+sr=neil@parkwaycc.co.uk

git-svn-id: svn://10.0.0.236/trunk@222119 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.org 2007-03-20 21:22:12 +00:00
parent bfaf9cce68
commit 33c4738d7c

View File

@ -79,7 +79,7 @@ nsXULTooltipListener::nsXULTooltipListener()
if (sTooltipListenerCount++ == 0) {
// register the callback so we get notified of updates
nsContentUtils::RegisterPrefCallback("browser.chrome.toolbar_tips",
ToolbarTipsPrefChanged, this);
ToolbarTipsPrefChanged, nsnull);
// Call the pref callback to initialize our state.
ToolbarTipsPrefChanged("browser.chrome.toolbar_tips", nsnull);
@ -93,7 +93,7 @@ nsXULTooltipListener::~nsXULTooltipListener()
if (--sTooltipListenerCount == 0) {
// Unregister our pref observer
nsContentUtils::UnregisterPrefCallback("browser.chrome.toolbar_tips",
ToolbarTipsPrefChanged, this);
ToolbarTipsPrefChanged, nsnull);
}
}