Commit d4643d99 authored by Tsuyoshi Horo's avatar Tsuyoshi Horo Committed by Commit Bot

Set WorkerSettings of ServiceWorkerGlobalScope.

I'm planing to add MixedContentChecking related settings to
WorkerSettings for off-main-thread-fetch.
But WorkerSettings is not set correctly in ServiceWorkerGlobalScope.
So this CL just adds SetWorkerSettings() in
ServiceWorkerGlobalScope::Create().

BUG=607575, 443374

Change-Id: I0e32bb84ce316b7125bfe11facfe5182095ae63f
Reviewed-on: https://chromium-review.googlesource.com/571207Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486701}
parent cf04f3b0
...@@ -84,6 +84,7 @@ ServiceWorkerGlobalScope* ServiceWorkerGlobalScope::Create( ...@@ -84,6 +84,7 @@ ServiceWorkerGlobalScope* ServiceWorkerGlobalScope::Create(
startup_data->worker_v8_settings_.v8_cache_options_); startup_data->worker_v8_settings_.v8_cache_options_);
context->ApplyContentSecurityPolicyFromVector( context->ApplyContentSecurityPolicyFromVector(
*startup_data->content_security_policy_headers_); *startup_data->content_security_policy_headers_);
context->SetWorkerSettings(std::move(startup_data->worker_settings_));
if (!startup_data->referrer_policy_.IsNull()) if (!startup_data->referrer_policy_.IsNull())
context->ParseAndSetReferrerPolicy(startup_data->referrer_policy_); context->ParseAndSetReferrerPolicy(startup_data->referrer_policy_);
context->SetAddressSpace(startup_data->address_space_); context->SetAddressSpace(startup_data->address_space_);
......
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