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

Issue 1833063002: Store the list of trial tokens in OriginTrialContext (Closed)

Created:
4 years, 9 months ago by Marijn Kruisselbrink
Modified:
4 years, 8 months ago
Reviewers:
iclelland, Rick Byers
CC:
blink-reviews, blink-reviews-dom_chromium.org, chasej+watch_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store the list of trial tokens in OriginTrialContext Refactor the way tokens are found by storing them separately from the document tree in OriginTrialContext. This simplifies the architecture a bit, making it easier to: - add support for tokens specified in http headers. - add support for trials in workers. - somehow limit which tokens are considered "valid". BUG=601108 Committed: https://crrev.com/b03579678fa2678748d5cbcec2e18a8a08e40701 Cr-Commit-Position: refs/heads/master@{#385504}

Patch Set 1 #

Patch Set 2 : #

Total comments: 27

Patch Set 3 : go back to having a OriginTrialContext class #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : rebase and nits #

Patch Set 6 : remove script generated related changes from this CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -388 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js View 1 2 1 chunk +28 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl View 1 2 3 4 1 chunk +15 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl View 1 2 3 4 1 chunk +6 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 3 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.cpp View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/HttpEquiv.cpp View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/DocumentOriginTrialContext.h View 1 2 3 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/DocumentOriginTrialContext.cpp View 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/DocumentOriginTrialContextTest.cpp View 1 2 3 1 chunk +0 lines, -117 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h View 1 2 3 4 chunks +13 lines, -20 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp View 1 2 3 6 chunks +31 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContextTest.cpp View 1 2 3 3 chunks +13 lines, -49 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPNames.in View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (9 generated)
Marijn Kruisselbrink
I hope I'm not getting in the way of any work you were (planning on) ...
4 years, 9 months ago (2016-03-25 19:08:39 UTC) #3
iclelland
I've uploaded my WIP as https://codereview.chromium.org/1840193006/ -- you can take a look at that to ...
4 years, 8 months ago (2016-03-31 15:00:00 UTC) #4
iclelland
On 2016/03/31 15:00:00, iclelland wrote: > I've uploaded my WIP as https://codereview.chromium.org/1840193006/ -- you can ...
4 years, 8 months ago (2016-03-31 18:05:10 UTC) #5
iclelland
https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/Source/core/origin_trials/OriginTrialsBaseTest.cpp File third_party/WebKit/Source/core/origin_trials/OriginTrialsBaseTest.cpp (right): https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/Source/core/origin_trials/OriginTrialsBaseTest.cpp#newcode79 third_party/WebKit/Source/core/origin_trials/OriginTrialsBaseTest.cpp:79: using OriginTrialsBase::isFeatureEnabled; On 2016/03/31 15:00:00, iclelland wrote: > I ...
4 years, 8 months ago (2016-03-31 18:05:20 UTC) #6
Marijn Kruisselbrink
On 2016/03/31 at 18:05:10, iclelland wrote: > On 2016/03/31 15:00:00, iclelland wrote: > > I've ...
4 years, 8 months ago (2016-03-31 19:01:48 UTC) #7
iclelland
https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html File third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html (right): https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html#newcode29 third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html:29: assert_idl_attribute(window.internals, 'frobulate'); On 2016/03/31 19:01:48, Marijn Kruisselbrink wrote: > ...
4 years, 8 months ago (2016-04-01 15:19:09 UTC) #8
Marijn Kruisselbrink
Also changed OriginTrials to be a namespace with just the auto-generated statics, and have OriginTrialContext ...
4 years, 8 months ago (2016-04-01 23:54:48 UTC) #10
iclelland
https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html File third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html (right): https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html#newcode10 third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html:10: document.head.appendChild(meta); On 2016/04/01 23:54:47, Marijn Kruisselbrink wrote: > On ...
4 years, 8 months ago (2016-04-05 17:26:28 UTC) #11
iclelland
Sorry for the delay -- other than those couple of issues (which are really nits), ...
4 years, 8 months ago (2016-04-05 17:29:30 UTC) #12
Marijn Kruisselbrink
+rbyers for core/ OWNERS https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html File third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html (right): https://codereview.chromium.org/1833063002/diff/40001/third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html#newcode10 third_party/WebKit/LayoutTests/http/tests/origin_trials/javascript-insert-token.html:10: document.head.appendChild(meta); On 2016/04/05 at 17:26:28, ...
4 years, 8 months ago (2016-04-05 20:56:08 UTC) #14
Rick Byers
I'm confused about the purpose of this change, let's discuss in the bug (and leave ...
4 years, 8 months ago (2016-04-05 21:09:01 UTC) #15
Marijn Kruisselbrink
On 2016/04/05 at 21:09:01, rbyers wrote: > I'm confused about the purpose of this change, ...
4 years, 8 months ago (2016-04-05 21:13:20 UTC) #16
Rick Byers
On 2016/04/05 21:13:20, Marijn Kruisselbrink wrote: > On 2016/04/05 at 21:09:01, rbyers wrote: > > ...
4 years, 8 months ago (2016-04-05 21:19:35 UTC) #17
Marijn Kruisselbrink
On 2016/04/05 at 21:19:35, rbyers wrote: > On 2016/04/05 21:13:20, Marijn Kruisselbrink wrote: > > ...
4 years, 8 months ago (2016-04-05 21:23:31 UTC) #19
Rick Byers
LGTM, thanks! Is the BUG= line still the best one to refer to? Doesn't matter ...
4 years, 8 months ago (2016-04-06 16:26:04 UTC) #20
Marijn Kruisselbrink
On 2016/04/06 at 16:26:04, rbyers wrote: > LGTM, thanks! > > Is the BUG= line ...
4 years, 8 months ago (2016-04-06 17:55:14 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1833063002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1833063002/140001
4 years, 8 months ago (2016-04-06 17:56:27 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 8 months ago (2016-04-06 18:03:07 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/b03579678fa2678748d5cbcec2e18a8a08e40701 Cr-Commit-Position: refs/heads/master@{#385504}
4 years, 8 months ago (2016-04-06 18:04:05 UTC) #28
Nico
4 years, 8 months ago (2016-04-08 01:49:27 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:140001) has been created in
https://codereview.chromium.org/1875593003/ by thakis@chromium.org.

The reason for reverting is: Broke release component builds on Windows.

Powered by Google App Engine
This is Rietveld 408576698