Bug 999213 - Remove now-unnecessary cleanup logic in ~TabChild. r=smaug
authorBobby Holley <bobbyholley@gmail.com>
Tue, 22 Apr 2014 14:26:45 -0700
changeset 180061 b68c399920f06d78e82476fc578139e948ad445c
parent 180060 2ec852591263013ba0c417f124fe0d3a4c5d105d
child 180062 1e1d541b2f3c3cd532f6ed8ade50336e998d2db6
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerssmaug
bugs999213
milestone31.0a1
Bug 999213 - Remove now-unnecessary cleanup logic in ~TabChild. r=smaug
dom/ipc/TabChild.cpp
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -1355,25 +1355,16 @@ TabChild::ActorDestroy(ActorDestroyReaso
 TabChild::~TabChild()
 {
     DestroyWindow();
 
     nsCOMPtr<nsIWebBrowser> webBrowser = do_QueryInterface(WebNavigation());
     if (webBrowser) {
       webBrowser->SetContainerWindow(nullptr);
     }
-    mGlobal = nullptr;
-
-    if (mTabChildGlobal) {
-      EventListenerManager* elm = mTabChildGlobal->GetExistingListenerManager();
-      if (elm) {
-        elm->Disconnect();
-      }
-      mTabChildGlobal->mTabChild = nullptr;
-    }
 }
 
 void
 TabChild::SetProcessNameToAppName()
 {
   nsCOMPtr<mozIApplication> app = GetOwnApp();
   if (!app) {
     return;