Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Unified Diff: Source/core/fetch/ResourceLoaderOptions.h

Issue 583903003: [Thread-safe] Take isolatedCopy of SecurityOrigin in ResourceLoaderOptions when passed across thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/fetch/ResourceLoaderOptionsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceLoaderOptions.h
diff --git a/Source/core/fetch/ResourceLoaderOptions.h b/Source/core/fetch/ResourceLoaderOptions.h
index ac30d74801404b9d8ef0cc58c165ddc2842ec666..a11143da1bdebf51262fa8173b7802a18a616bd9 100644
--- a/Source/core/fetch/ResourceLoaderOptions.h
+++ b/Source/core/fetch/ResourceLoaderOptions.h
@@ -158,7 +158,7 @@ struct CrossThreadResourceLoaderOptionsData {
, mixedContentBlockingTreatment(options.mixedContentBlockingTreatment)
, synchronousPolicy(options.synchronousPolicy)
, corsEnabled(options.corsEnabled)
- , securityOrigin(options.securityOrigin) { }
+ , securityOrigin(options.securityOrigin ? options.securityOrigin->isolatedCopy() : nullptr) { }
operator ResourceLoaderOptions() const
{
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/fetch/ResourceLoaderOptionsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698