mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
made GlobalWindowImpl support weak ref to get around
holding on to raw pointers to windows causing problems in destruction of windows
This commit is contained in:
parent
0dc65fb828
commit
c8f6bd642a
@ -171,6 +171,7 @@ NS_INTERFACE_MAP_BEGIN(GlobalWindowImpl)
|
||||
NS_INTERFACE_MAP_ENTRY(nsPIDOMWindow)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDOMViewCSS)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDOMAbstractView)
|
||||
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
//*****************************************************************************
|
||||
|
@ -26,6 +26,7 @@
|
||||
// Local Includes
|
||||
// Helper Classes
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsWeakReference.h"
|
||||
#include "nsHashtable.h"
|
||||
|
||||
// Interfaces Needed
|
||||
@ -78,7 +79,8 @@ class GlobalWindowImpl : public nsIScriptGlobalObject,
|
||||
public nsIScriptObjectPrincipal,
|
||||
public nsIDOMEventReceiver,
|
||||
public nsPIDOMWindow,
|
||||
public nsIDOMViewCSS
|
||||
public nsIDOMViewCSS,
|
||||
public nsSupportsWeakReference
|
||||
{
|
||||
public:
|
||||
// nsISupports
|
||||
|
Loading…
x
Reference in New Issue
Block a user