Bug 1171127 - Listeners are not released in OnStopRequest in e10s mode. r=jduell
authorValentin Gosu <valentin.gosu@gmail.com>
Mon, 15 Jun 2015 02:39:29 +0300
changeset 249167 02eb7fe4cdd174f979fe8b9bc55deeb80f2f8cc9
parent 249166 f1467e2f65c24ceb4276c744f1c1edfb4faf1cb7
child 249168 137e8a950be5aa2da34ebac2fd6eae67cc68c319
push id61155
push userryanvm@gmail.com
push dateTue, 16 Jun 2015 19:20:04 +0000
treeherdermozilla-inbound@02eb7fe4cdd1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell
bugs1171127
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1171127 - Listeners are not released in OnStopRequest in e10s mode. r=jduell
netwerk/protocol/http/HttpChannelChild.cpp
--- a/netwerk/protocol/http/HttpChannelChild.cpp
+++ b/netwerk/protocol/http/HttpChannelChild.cpp
@@ -779,16 +779,18 @@ HttpChannelChild::OnStopRequest(const ns
   { // We must flush the queue before we Send__delete__
     // (although we really shouldn't receive any msgs after OnStop),
     // so make sure this goes out of scope before then.
     AutoEventEnqueuer ensureSerialDispatch(mEventQ);
 
     DoOnStopRequest(this, mListenerContext);
   }
 
+  ReleaseListeners();
+
   if (mLoadFlags & LOAD_DOCUMENT_URI) {
     // Keep IPDL channel open, but only for updating security info.
     mKeptAlive = true;
     SendDocumentChannelCleanup();
   } else {
     // This calls NeckoChild::DeallocPHttpChannelChild(), which deletes |this| if IPDL
     // holds the last reference.  Don't rely on |this| existing after here.
     PHttpChannelChild::Send__delete__(this);