Revert the checkin for bug 326742, the notifications are fairly useless. r+a=bzbarsky

This commit is contained in:
bryner%brianryner.com 2006-03-03 20:18:07 +00:00
parent d8f2af5c4a
commit 4bc4e83098
2 changed files with 0 additions and 20 deletions

View File

@ -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<nsIObserverService> obsSvc =
do_GetService("@mozilla.org/observer-service;1");
if (obsSvc) {
obsSvc->NotifyObservers(win, "domwindowcreated", nsnull);
}
return NS_OK;
}

View File

@ -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<nsIObserverService> 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);
}