Bug 1393439 - P2: Correct the variable naming. r=bkelly

MozReview-Commit-ID: 1DblOV82nEd

--HG--
extra : rebase_source : e03fc7b091d7aa4a6076660416f2c9514ad8894b
This commit is contained in:
Tom Tung 2017-08-29 16:00:35 +08:00
Родитель 85b52e428b
Коммит f3b0f175ac
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -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<nsIChannel> 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.