Bug 1525319 - Removing context from OnStartRequest r=valentin

Differential Revision: https://phabricator.services.mozilla.com/D20769
This commit is contained in:
Jonathan Kingston
2019-02-24 20:26:16 +00:00
parent 996cb39efa
commit d6fffaf979
113 changed files with 210 additions and 276 deletions

View File

@@ -886,8 +886,7 @@ class MaybeRunCollector : public Runnable {
nsCOMPtr<nsIDocShell> mDocShell;
};
nsresult nsHtml5StreamParser::OnStartRequest(nsIRequest* aRequest,
nsISupports* aContext) {
nsresult nsHtml5StreamParser::OnStartRequest(nsIRequest* aRequest) {
MOZ_RELEASE_ASSERT(STREAM_NOT_STARTED == mStreamState,
"Got OnStartRequest when the stream had already started.");
MOZ_ASSERT(
@@ -895,7 +894,7 @@ nsresult nsHtml5StreamParser::OnStartRequest(nsIRequest* aRequest,
"Got OnStartRequest at the wrong stage in the executor life cycle.");
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
if (mObserver) {
mObserver->OnStartRequest(aRequest, aContext);
mObserver->OnStartRequest(aRequest);
}
mRequest = aRequest;