diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp index 17aafe9535b3..2a5f2a14e982 100644 --- a/dom/fetch/FetchDriver.cpp +++ b/dom/fetch/FetchDriver.cpp @@ -615,9 +615,9 @@ FetchDriver::OnStartRequest(nsIRequest* aRequest, // From "Main Fetch" step 19: SRI-part1. if (ShouldCheckSRI(mRequest, mResponse) && mSRIMetadata.IsEmpty()) { - nsIConsoleReportCollector* aReporter = nullptr; + nsIConsoleReportCollector* reporter = nullptr; if (mObserver) { - aReporter = mObserver->GetReporter(); + reporter = mObserver->GetReporter(); } nsAutoCString sourceUri; @@ -627,9 +627,9 @@ FetchDriver::OnStartRequest(nsIRequest* aRequest, sourceUri.Assign(mWorkerScript); } SRICheck::IntegrityMetadata(mRequest->GetIntegrity(), sourceUri, - aReporter, &mSRIMetadata); + reporter, &mSRIMetadata); mSRIDataVerifier = new SRICheckDataVerifier(mSRIMetadata, sourceUri, - aReporter); + reporter); // Do not retarget off main thread when using SRI API. return NS_OK; @@ -796,9 +796,9 @@ FetchDriver::OnStopRequest(nsIRequest* aRequest, nsCOMPtr channel = do_QueryInterface(aRequest); - nsIConsoleReportCollector* aReporter = nullptr; + nsIConsoleReportCollector* reporter = nullptr; if (mObserver) { - aReporter = mObserver->GetReporter(); + reporter = mObserver->GetReporter(); } nsAutoCString sourceUri; @@ -808,7 +808,7 @@ FetchDriver::OnStopRequest(nsIRequest* aRequest, sourceUri.Assign(mWorkerScript); } nsresult rv = mSRIDataVerifier->Verify(mSRIMetadata, channel, sourceUri, - aReporter); + reporter); if (NS_FAILED(rv)) { FailWithNetworkError(); // Cancel request.