Bug 1525319 - Removing context from OnStopRequest r=valentin

Differential Revision: https://phabricator.services.mozilla.com/D20770
This commit is contained in:
Jonathan Kingston
2019-02-27 23:41:31 +00:00
parent 649c453cbd
commit 3ef1df37e1
111 changed files with 179 additions and 218 deletions

View File

@@ -1168,12 +1168,11 @@ class nsHtml5RequestStopper : public Runnable {
};
nsresult nsHtml5StreamParser::OnStopRequest(nsIRequest* aRequest,
nsISupports* aContext,
nsresult status) {
NS_ASSERTION(mRequest == aRequest, "Got Stop on wrong stream.");
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
if (mObserver) {
mObserver->OnStopRequest(aRequest, aContext, status);
mObserver->OnStopRequest(aRequest, status);
}
nsCOMPtr<nsIRunnable> stopper = new nsHtml5RequestStopper(this);
if (NS_FAILED(mEventTarget->Dispatch(stopper, nsIThread::DISPATCH_NORMAL))) {