diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 87791bfe7b6..d8243cc8699 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -8200,15 +8200,6 @@ nsDocShell::EnsureScriptEnvironment() // Note that mScriptGlobal has taken a reference to the script // context, so we don't have to. - // Notify observers that we've created a new outer window. - // The matching notification for domwindowdestroyed is in - // nsGlobalWindow::~nsGlobalWindow(). - nsCOMPtr obsSvc = - do_GetService("@mozilla.org/observer-service;1"); - if (obsSvc) { - obsSvc->NotifyObservers(win, "domwindowcreated", nsnull); - } - return NS_OK; } diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 1ff1e1a2bc1..5aade61e452 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -140,7 +140,6 @@ #include "nsCSSProps.h" #include "nsIURIFixup.h" #include "nsCDefaultURIFixup.h" -#include "nsIObserverService.h" #include "plbase64.h" @@ -355,16 +354,6 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow) nsGlobalWindow::~nsGlobalWindow() { - if (IsOuterWindow()) { - // Only notify about outer window destruction - nsCOMPtr obsSvc = - do_GetService("@mozilla.org/observer-service;1"); - if (obsSvc) { - obsSvc->NotifyObservers(NS_STATIC_CAST(nsPIDOMWindow*, this), - "domwindowdestroyed", nsnull); - } - } - if (!--gRefCnt) { NS_IF_RELEASE(gEntropyCollector); }