| Index: third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp b/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| index e9ce4835c899b78334a09276f7f2144e4facddbb..592cf2ba5f6c1332d74bdda666a58501274b0f32 100644
|
| --- a/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| @@ -263,10 +263,7 @@ void WorkerFetchContext::SetFirstPartyCookieAndRequestorOrigin(
|
| ResourceRequest& out_request) {
|
| if (out_request.FirstPartyForCookies().IsNull())
|
| out_request.SetFirstPartyForCookies(FirstPartyForCookies());
|
| - // TODO(mkwst): It would be cleaner to adjust blink::ResourceRequest to
|
| - // initialize itself with a `nullptr` initiator so that this can be a simple
|
| - // `isNull()` check. https://crbug.com/625969
|
| - if (out_request.RequestorOrigin()->IsUnique())
|
| + if (!out_request.RequestorOrigin())
|
| out_request.SetRequestorOrigin(GetSecurityOrigin());
|
| }
|
|
|
|
|