Commit fd28cc4c authored by Han Leon's avatar Han Leon Committed by Commit Bot

[ServiceWorker] Check state in WebServiceWorkerRegistrationImpl::SetVersionAttributes

BUG=769236

Change-Id: Ifeee539a033b93ccee3e2223e7eb36b266385911
Reviewed-on: https://chromium-review.googlesource.com/748905Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Han Leon <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#513115}
parent be262f67
......@@ -418,6 +418,10 @@ void WebServiceWorkerRegistrationImpl::SetVersionAttributes(
std::move(active)));
return;
}
if (state_ == LifecycleState::kDetached)
return;
DCHECK_EQ(LifecycleState::kAttachedAndBound, state_);
ServiceWorkerDispatcher* dispatcher =
ServiceWorkerDispatcher::GetThreadSpecificInstance();
DCHECK(dispatcher);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment