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

Issue 1828063002: Add support for origin trials in workers. (Closed)

Created:
4 years, 9 months ago by Marijn Kruisselbrink
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, falken, horo+watch_chromium.org, kinuko+worker_chromium.org, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@trial-token-in-header-blink-document
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for origin trials in workers. This adds support for origin trials in workers (dedicated, shared and service workers). It does so by adding a list of tokens to WorkerThreadStartupData. That list is filled using the response headers for shared and service workers, and filled with the documents tokens for dedicated workers. BUG=582063 BUG=582195 BUG=582197 Committed: https://crrev.com/de1993ee636b9c8a2ca0f1a817ff3d3ca5c88a6d Cr-Commit-Position: refs/heads/master@{#392661} Committed: https://crrev.com/7c46bff409ea163d14af6569b004f7904aa6438e Cr-Commit-Position: refs/heads/master@{#392778}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Total comments: 12

Patch Set 7 : rebase #

Patch Set 8 : address comments #

Total comments: 12

Patch Set 9 : address comments and update test expectations #

Patch Set 10 : rebase on top of WorkerInternals change #

Patch Set 11 : fix test flakyness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -55 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/sample-api-enabled-worker.php View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -11 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-workers.html View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/utilities.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 5 6 7 8 9 10 12 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +26 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.h View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.idl View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (14 generated)
Marijn Kruisselbrink
PTAL whenever you're back and done with my other review requests :) https://codereview.chromium.org/1828063002/diff/60001/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp File third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp ...
4 years, 9 months ago (2016-03-25 21:21:16 UTC) #5
iclelland
This is really exciting -- I'm glad to see it come together! I don't see ...
4 years, 8 months ago (2016-04-13 16:04:15 UTC) #7
Marijn Kruisselbrink
On 2016/04/13 at 16:04:15, iclelland wrote: > I don't see a test for a dedicated ...
4 years, 8 months ago (2016-04-14 19:02:56 UTC) #8
iclelland
On 2016/04/13 at 16:04:15, iclelland wrote: > > I don't see a test for a ...
4 years, 8 months ago (2016-04-15 19:55:42 UTC) #9
Marijn Kruisselbrink
On 2016/04/15 at 19:55:42, iclelland wrote: > > But I'm not > > really happy ...
4 years, 7 months ago (2016-04-28 00:12:19 UTC) #10
iclelland
https://codereview.chromium.org/1828063002/diff/120001/third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp (right): https://codereview.chromium.org/1828063002/diff/120001/third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp#newcode115 third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp:115: OwnPtr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(scriptURL, userAgent, sourceCode, nullptr, startMode, csp->headers(), ...
4 years, 7 months ago (2016-04-28 15:39:22 UTC) #11
Marijn Kruisselbrink
https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h File third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h (right): https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h#newcode53 third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h:53: static PassOwnPtr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const ...
4 years, 7 months ago (2016-04-28 17:45:27 UTC) #12
iclelland
Thanks -- this LGTM https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h File third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h (right): https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h#newcode53 third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h:53: static PassOwnPtr<WorkerThreadStartupData> create(const KURL& scriptURL, ...
4 years, 7 months ago (2016-04-28 18:02:52 UTC) #13
haraken
bindings LGTM https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h File third_party/WebKit/Source/core/workers/WorkerScriptLoader.h (right): https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h#newcode129 third_party/WebKit/Source/core/workers/WorkerScriptLoader.h:129: std::unique_ptr<Vector<String>> m_originTrialTokens; Per yutak's PSA (https://groups.google.com/a/chromium.org/d/msg/blink-dev/eCDdVh-VsM4/Fe-T-QXBAAAJ), it ...
4 years, 7 months ago (2016-04-28 19:29:30 UTC) #15
Marijn Kruisselbrink
+kinuko for core/ OWNERS. And I'm still not happy nor sure what to do about ...
4 years, 7 months ago (2016-04-28 21:54:24 UTC) #17
haraken
https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h File third_party/WebKit/Source/core/workers/WorkerScriptLoader.h (right): https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h#newcode129 third_party/WebKit/Source/core/workers/WorkerScriptLoader.h:129: std::unique_ptr<Vector<String>> m_originTrialTokens; On 2016/04/28 21:54:24, Marijn Kruisselbrink wrote: > ...
4 years, 7 months ago (2016-04-29 06:46:32 UTC) #18
kinuko
lgtm (assuming using unique_ptr in new files is ok) https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/core.gypi File third_party/WebKit/Source/core/core.gypi (right): https://codereview.chromium.org/1828063002/diff/160001/third_party/WebKit/Source/core/core.gypi#newcode444 third_party/WebKit/Source/core/core.gypi:444: ...
4 years, 7 months ago (2016-04-29 09:43:05 UTC) #19
Marijn Kruisselbrink
+rbyers as OWNER for the unfortunate stable webexposed layouttest changes... And maybe you have other ...
4 years, 7 months ago (2016-05-02 23:19:31 UTC) #21
chasej
On 2016/05/02 23:19:31, Marijn Kruisselbrink wrote: > +rbyers as OWNER for the unfortunate stable webexposed ...
4 years, 7 months ago (2016-05-03 02:55:32 UTC) #22
Rick Byers
On 2016/05/03 02:55:32, chasej wrote: > On 2016/05/02 23:19:31, Marijn Kruisselbrink wrote: > > +rbyers ...
4 years, 7 months ago (2016-05-03 16:09:41 UTC) #23
Marijn Kruisselbrink
On 2016/05/03 at 16:09:41, rbyers wrote: > On 2016/05/03 02:55:32, chasej wrote: > > There ...
4 years, 7 months ago (2016-05-03 19:02:02 UTC) #24
Marijn Kruisselbrink
On 2016/05/03 at 16:09:41, rbyers wrote: > On 2016/05/03 02:55:32, chasej wrote: > > There ...
4 years, 7 months ago (2016-05-03 19:56:37 UTC) #25
Rick Byers
On 2016/05/03 19:56:37, Marijn Kruisselbrink wrote: > On 2016/05/03 at 16:09:41, rbyers wrote: > > ...
4 years, 7 months ago (2016-05-04 13:53:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828063002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1828063002/200001
4 years, 7 months ago (2016-05-10 17:04:11 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 7 months ago (2016-05-10 18:35:44 UTC) #30
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/de1993ee636b9c8a2ca0f1a817ff3d3ca5c88a6d Cr-Commit-Position: refs/heads/master@{#392661}
4 years, 7 months ago (2016-05-10 18:37:23 UTC) #32
Marijn Kruisselbrink
A revert of this CL (patchset #10 id:200001) has been created in https://codereview.chromium.org/1969583002/ by mek@chromium.org. ...
4 years, 7 months ago (2016-05-10 22:07:26 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828063002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1828063002/220001
4 years, 7 months ago (2016-05-10 23:27:51 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 7 months ago (2016-05-11 00:08:47 UTC) #37
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 00:11:20 UTC) #39
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7c46bff409ea163d14af6569b004f7904aa6438e
Cr-Commit-Position: refs/heads/master@{#392778}

Powered by Google App Engine
This is Rietveld 408576698