зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1393439 - P2: Correct the variable naming. r=bkelly
MozReview-Commit-ID: 1DblOV82nEd --HG-- extra : rebase_source : e03fc7b091d7aa4a6076660416f2c9514ad8894b
This commit is contained in:
Родитель
85b52e428b
Коммит
f3b0f175ac
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче