зеркало из https://github.com/mozilla/gecko-dev.git
Add shutdown code for the macBrowserOverlay so that we remove gSanitizeListener as a pref observer. b=342600 r=mano
This commit is contained in:
Родитель
2dad2a0ef4
Коммит
ccc36edae0
|
@ -1223,8 +1223,9 @@ function BrowserShutdown()
|
|||
}
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// nonBrowserWindowStartup() and nonBrowserWindowDelayedStartup() are used for
|
||||
// non-browser windows in macBrowserOverlay
|
||||
// nonBrowserWindowStartup(), nonBrowserWindowDelayedStartup(), and
|
||||
// nonBrowserWindowShutdown() are used for non-browser windows in
|
||||
// macBrowserOverlay
|
||||
function nonBrowserWindowStartup()
|
||||
{
|
||||
// Disable inappropriate commands / submenus
|
||||
|
@ -1273,6 +1274,12 @@ function nonBrowserWindowDelayedStartup()
|
|||
// Set up Sanitize Item
|
||||
gSanitizeListener = new SanitizeListener();
|
||||
}
|
||||
|
||||
function nonBrowserWindowShutdown()
|
||||
{
|
||||
if (gSanitizeListener)
|
||||
gSanitizeListener.shutdown();
|
||||
}
|
||||
#endif
|
||||
|
||||
function AutoHideTabbarPrefListener()
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
|
||||
<script type="application/x-javascript">
|
||||
addEventListener("load", nonBrowserWindowStartup, false);
|
||||
addEventListener("unload", nonBrowserWindowShutdown, false);
|
||||
</script>
|
||||
|
||||
# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
|
||||
|
|
Загрузка…
Ссылка в новой задаче