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

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

Issue 2415373002: Loading: bulk style errors fix in core/loader (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
index 30cc33ab3c3b5b42f80d3369096250208b726dd7..49bb2afe55e4f0440f3f5c1d4ad350ff9e0a0469 100644
--- a/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
@@ -221,10 +221,11 @@ WorkerThreadableLoader::~WorkerThreadableLoader() {
void WorkerThreadableLoader::start(const ResourceRequest& originalRequest) {
ResourceRequest request(originalRequest);
- if (!request.didSetHTTPReferrer())
+ if (!request.didSetHTTPReferrer()) {
request.setHTTPReferrer(SecurityPolicy::generateReferrer(
m_workerGlobalScope->getReferrerPolicy(), request.url(),
m_workerGlobalScope->outgoingReferrer()));
+ }
DCHECK(!isMainThread());
RefPtr<WaitableEventWithTasks> eventWithTasks;

Powered by Google App Engine
This is Rietveld 408576698