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

Unified Diff: third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp

Issue 2891453005: Pipe the FirstPartyForCookies to WorkerFetchContext for off-main-thread-fetch (Closed)
Patch Set: rebase Created 3 years, 7 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
Index: third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp b/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
index 551dd18c046896d657658ce0ba857ba03f1f5304..e5f4ef6cd05ecb34006802cf3e09ae128ccd631e 100644
--- a/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
+++ b/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
@@ -101,9 +101,7 @@ class WorkerThreadableLoadingContext : public ThreadableLoadingContext {
KURL FirstPartyForCookies() const override {
DCHECK(IsContextThread());
- // TODO(horo): Returns the FirstPartyForCookies of the parent frame for
- // dedicated workers.
- return worker_global_scope_->Url();
+ return fetch_context_->FirstPartyForCookies();
}
String UserAgent() const override {

Powered by Google App Engine
This is Rietveld 408576698