зеркало из https://github.com/mozilla/pjs.git
Properly unregister the content listener when browser instance service goes away. This is a temporary fix until command service changes can be properly factored. r=mscott bug #26979
This commit is contained in:
Родитель
aa51a36202
Коммит
f18a1d3ba6
|
@ -25,7 +25,6 @@
|
|||
// Use this trick temporarily, to minimize delta to nsBrowserAppCore.cpp.
|
||||
#define nsBrowserAppCore nsBrowserInstance
|
||||
|
||||
#include "nsIBrowserWindow.h"
|
||||
#include "nsIWebShell.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIMarkupDocumentViewer.h"
|
||||
|
@ -46,6 +45,7 @@
|
|||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIWebShell.h"
|
||||
#include "nsIWebShellWindow.h"
|
||||
#include "nsIBrowserWindow.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsXPIDLString.h"
|
||||
|
||||
|
@ -172,6 +172,7 @@ nsBrowserAppCore::nsBrowserAppCore()
|
|||
|
||||
nsBrowserAppCore::~nsBrowserAppCore()
|
||||
{
|
||||
Close();
|
||||
NS_IF_RELEASE(mSHistory);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче