| Index: content/browser/service_worker/service_worker_controllee_request_handler.cc
|
| diff --git a/content/browser/service_worker/service_worker_controllee_request_handler.cc b/content/browser/service_worker/service_worker_controllee_request_handler.cc
|
| index 75ad6effe8e05c64d5a6ea6217763699117550a8..fdaa81dc171a21d5994968c4e186dc801e295785 100644
|
| --- a/content/browser/service_worker/service_worker_controllee_request_handler.cc
|
| +++ b/content/browser/service_worker/service_worker_controllee_request_handler.cc
|
| @@ -94,8 +94,7 @@ void ServiceWorkerControlleeRequestHandler::PrepareForMainResource(
|
| DCHECK(context_);
|
| // The corresponding provider_host may already have associate version in
|
| // redirect case, unassociate it now.
|
| - provider_host_->SetActiveVersion(NULL);
|
| - provider_host_->SetWaitingVersion(NULL);
|
| + provider_host_->UnsetVersion(NULL);
|
|
|
| GURL stripped_url = net::SimplifyUrlForRequest(url);
|
| provider_host_->SetDocumentUrl(stripped_url);
|
| @@ -122,6 +121,7 @@ ServiceWorkerControlleeRequestHandler::DidLookupRegistrationForMainResource(
|
| // so the versions in the pipeline (.installing, .waiting) show up in the
|
| // attribute values.
|
| DCHECK(registration);
|
| + provider_host_->SetControllerVersion(registration->active_version());
|
| provider_host_->SetActiveVersion(registration->active_version());
|
| provider_host_->SetWaitingVersion(registration->waiting_version());
|
| job_->ForwardToServiceWorker();
|
|
|