diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 10:22:43 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 12:36:28 +0000 |
commit | 271a6c3487a14599023a9106329505597638d793 (patch) | |
tree | e040d58ffc86c1480b79ca8528020ca9ec919bf8 /chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc | |
parent | 7b2ffa587235a47d4094787d72f38102089f402a (diff) | |
download | qtwebengine-chromium-271a6c3487a14599023a9106329505597638d793.tar.gz |
BASELINE: Update Chromium to 77.0.3865.59
Change-Id: I1e89a5f3b009a9519a6705102ad65c92fe736f21
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc b/chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc index 08633f82e35..6f72eb4608d 100644 --- a/chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc +++ b/chromium/third_party/blink/renderer/core/workers/shared_worker_client_holder.cc @@ -35,6 +35,7 @@ #include "base/logging.h" #include "services/service_manager/public/cpp/interface_provider.h" #include "third_party/blink/public/common/messaging/message_port_channel.h" +#include "third_party/blink/public/mojom/loader/fetch_client_settings_object.mojom-blink.h" #include "third_party/blink/public/mojom/worker/shared_worker_info.mojom-blink.h" #include "third_party/blink/public/platform/web_content_security_policy.h" #include "third_party/blink/public/platform/web_string.h" @@ -45,6 +46,9 @@ #include "third_party/blink/renderer/core/frame/csp/content_security_policy.h" #include "third_party/blink/renderer/core/workers/shared_worker.h" #include "third_party/blink/renderer/core/workers/shared_worker_client.h" +#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object_snapshot.h" +#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h" +#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher_properties.h" namespace blink { @@ -102,8 +106,19 @@ void SharedWorkerClientHolder::Connect( mojo::MakeRequest(&client_ptr, task_runner_), task_runner_); + auto* outside_fetch_client_settings_object = + MakeGarbageCollected<FetchClientSettingsObjectSnapshot>( + worker->GetExecutionContext() + ->Fetcher() + ->GetProperties() + .GetFetchClientSettingsObject()); + connector_->Connect( - std::move(info), std::move(client_ptr), + std::move(info), + mojom::blink::FetchClientSettingsObject::New( + outside_fetch_client_settings_object->GetReferrerPolicy(), + KURL(outside_fetch_client_settings_object->GetOutgoingReferrer())), + std::move(client_ptr), worker->GetExecutionContext()->IsSecureContext() ? mojom::SharedWorkerCreationContextType::kSecure : mojom::SharedWorkerCreationContextType::kNonsecure, |