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-24 20:26:59 +00:00
parent d6fffaf979
commit 4334f239c3
111 changed files with 181 additions and 220 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))) {