summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc b/chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc
index c76cd892ea3..308caa97c3b 100644
--- a/chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc
+++ b/chromium/third_party/blink/renderer/core/workers/global_scope_creation_params.cc
@@ -47,7 +47,8 @@ GlobalScopeCreationParams::GlobalScopeCreationParams(
bool parent_isolated_application_capability,
InterfaceRegistry* interface_registry,
scoped_refptr<base::SingleThreadTaskRunner>
- agent_group_scheduler_compositor_task_runner)
+ agent_group_scheduler_compositor_task_runner,
+ const SecurityOrigin* top_level_frame_security_origin)
: script_url(script_url),
script_type(script_type),
global_scope_name(global_scope_name),
@@ -86,7 +87,11 @@ GlobalScopeCreationParams::GlobalScopeCreationParams(
parent_isolated_application_capability),
interface_registry(interface_registry),
agent_group_scheduler_compositor_task_runner(
- std::move(agent_group_scheduler_compositor_task_runner)) {
+ std::move(agent_group_scheduler_compositor_task_runner)),
+ top_level_frame_security_origin(
+ top_level_frame_security_origin
+ ? top_level_frame_security_origin->IsolatedCopy()
+ : nullptr) {
this->inherited_trial_features =
std::make_unique<Vector<OriginTrialFeature>>();
if (inherited_trial_features) {