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

Issue 2086143006: Implement Referrer-Policy header for workers (Closed)

Created:
4 years, 6 months ago by estark
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-worker-reviews_chromium.org, chromium-reviews, falken, haraken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+watch, kinuko+serviceworker, kinuko+worker_chromium.org, michaeln, Mike West, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Referrer-Policy header for workers This CL adds (runtime-enabled) support for the Referrer-Policy header when loading worker scripts. If a worker script is served with a Referrer-Policy header, then that policy is used for requests that the worker initiates. If no Referrer-Policy header is present, then the worker gets the default referrer policy. Intent to Implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/Umj9iVRJM70 BUG=619228 Committed: https://crrev.com/239c8bd69c319553a11b83041042cde6879deaab Cr-Commit-Position: refs/heads/master@{#401953}

Patch Set 1 #

Total comments: 2

Patch Set 2 : isolatedCopy #

Total comments: 2

Patch Set 3 : fix shared worker path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -31 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/save-referrer.php View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/worker.php View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/worker-with-header.html View 1 chunk +14 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/referrer-policy-header.html View 2 chunks +4 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-rewrite-worker.php View 1 chunk +5 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/referrer-policy-iframe.html View 1 chunk +2 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h View 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
estark
jochen, ptal? and mkwst too if you'd like
4 years, 6 months ago (2016-06-23 23:50:04 UTC) #2
estark
(While this CL touches a lot of files, it's not very complicated: we're basically just ...
4 years, 6 months ago (2016-06-23 23:51:15 UTC) #3
Marijn Kruisselbrink
drive-by question https://codereview.chromium.org/2086143006/diff/1/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp File third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp (right): https://codereview.chromium.org/2086143006/diff/1/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp#newcode45 third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp:45: , m_referrerPolicy(referrerPolicy) shouldn't this call referrerPolicy.isolatedCopy() to ...
4 years, 6 months ago (2016-06-24 00:00:14 UTC) #4
estark
https://codereview.chromium.org/2086143006/diff/1/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp File third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp (right): https://codereview.chromium.org/2086143006/diff/1/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp#newcode45 third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp:45: , m_referrerPolicy(referrerPolicy) On 2016/06/24 00:00:14, Marijn Kruisselbrink wrote: > ...
4 years, 6 months ago (2016-06-24 00:10:03 UTC) #5
Mike West
LGTM with some testing nits. https://codereview.chromium.org/2086143006/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html File third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html (right): https://codereview.chromium.org/2086143006/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html#newcode8 third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html:8: var worker = new ...
4 years, 6 months ago (2016-06-24 10:38:48 UTC) #7
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-24 12:03:47 UTC) #8
estark
https://codereview.chromium.org/2086143006/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html File third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html (right): https://codereview.chromium.org/2086143006/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html#newcode8 third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html:8: var worker = new SharedWorker('http://127.0.0.1:8000/security/referrerPolicyHeader/resources/worker.php'); On 2016/06/24 10:38:47, Mike ...
4 years, 6 months ago (2016-06-24 17:34:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2086143006/40001
4 years, 6 months ago (2016-06-24 17:35:15 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-24 20:24:25 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 20:25:46 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/239c8bd69c319553a11b83041042cde6879deaab
Cr-Commit-Position: refs/heads/master@{#401953}

Powered by Google App Engine
This is Rietveld 408576698