Bug 1325915 - Part 2, update comment for reseting event target of event queue after the completion of ServiceWorker interception. r=mayhemer
MozReview-Commit-ID: Dc2TbCwQfpO
--- a/netwerk/protocol/http/HttpChannelChild.cpp
+++ b/netwerk/protocol/http/HttpChannelChild.cpp
@@ -1200,18 +1200,18 @@ HttpChannelChild::OverrideRunnable::Run(
mozilla::ipc::IPCResult
HttpChannelChild::RecvFinishInterceptedRedirect()
{
// Hold a ref to this to keep it from being deleted by Send__delete__()
RefPtr<HttpChannelChild> self(this);
Send__delete__(this);
- // Reset the event target to which queued messages are delivered. Otherwise
- // we'll get an assertion when we re-use the channel later on.
+ // Reset the event target since the IPC actor is about to be destroyed.
+ // Following channel event should be handled on main thread.
mEventQ->ResetDeliveryTarget();
// The IPDL connection was torn down by a interception logic in
// CompleteRedirectSetup, and we need to call FinishInterceptedRedirect.
NS_DispatchToMainThread(NewRunnableMethod(this, &HttpChannelChild::FinishInterceptedRedirect));
return IPC_OK();
}