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

Issue 2640823004: Allow origin trials to be enabled by script (Closed)

Created:
3 years, 11 months ago by chasej
Modified:
3 years, 10 months ago
Reviewers:
haraken, iclelland
CC:
chromium-reviews, iclelland+watch_chromuim.org, chasej+watch_chromium.org, blink-reviews-bindings_chromium.org, iclelland, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Add tracking of installed features #

Total comments: 29

Patch Set 4 : New approach to pending features #

Patch Set 5 : Rebase #

Total comments: 24

Patch Set 6 : Address comments #

Total comments: 20

Patch Set 7 : Address comments #

Patch Set 8 : Address latest comment #

Total comments: 6

Patch Set 9 : Rebase and fixes for new WebUSB2 trial #

Patch Set 10 : Rename to installConditionalFeaturesOnWindow #

Patch Set 11 : Rebase #

Total comments: 1

Patch Set 12 : Address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1890 lines, -85 lines) Patch
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js View 1 1 chunk +13 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js View 2 chunks +5 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-script-added.html View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-script-added-before-access.html View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces.html View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces.html View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added.html View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-script-added.html View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker.php View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces.html View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added.html View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces.html View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added.html View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +179 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js View 1 2 3 1 chunk +134 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/README.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/origin-trials-features-disabled/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +94 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/README.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added-expected.txt View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/stable/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +94 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h View 1 2 3 4 5 6 7 8 9 2 chunks +30 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +67 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp View 1 2 3 4 5 6 7 8 2 chunks +110 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h View 1 2 3 4 5 6 1 chunk +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +34 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.h View 1 2 3 4 5 6 1 chunk +2 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +36 lines, -8 lines 0 comments Download

Messages

Total messages: 57 (39 generated)
chasej
iclelland, please take a look. This is still a WIP, but I'd appreciate a review ...
3 years, 11 months ago (2017-01-20 04:46:46 UTC) #11
iclelland
I think I need to take a closer look at some of the logic, but ...
3 years, 11 months ago (2017-01-20 14:31:19 UTC) #12
chasej
iclelland, please take another look. I've significantly changed the approach in ConditionalFeatures*. From your comments, ...
3 years, 11 months ago (2017-01-25 19:58:20 UTC) #13
iclelland
I haven't reviewed all of the test changes yet, but I've left comments below on ...
3 years, 11 months ago (2017-01-26 20:14:12 UTC) #22
chasej
iclelland, please take another look. haraken, please take a look at everything for OWNER, but ...
3 years, 10 months ago (2017-01-27 17:22:36 UTC) #24
haraken
Sorry about the review delay. Mostly looks good! https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp File third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp (right): https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp#newcode60 third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp:60: if ...
3 years, 10 months ago (2017-01-28 02:25:21 UTC) #29
chasej
haraken, iclelland, please take another look. https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp File third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp (right): https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp#newcode60 third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp:60: if (feature == ...
3 years, 10 months ago (2017-01-30 19:15:56 UTC) #30
iclelland
https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h File third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h (right): https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h#newcode54 third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h:54: // when the V8 context is reused (i.e., after ...
3 years, 10 months ago (2017-01-30 20:37:39 UTC) #31
chasej
On 2017/01/30 20:37:39, iclelland wrote: > https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h > File third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h (right): > > https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h#newcode54 > ...
3 years, 10 months ago (2017-01-30 20:55:50 UTC) #34
haraken
LGTM https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h File third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h (right): https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h#newcode54 third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h:54: // when the V8 context is reused (i.e., ...
3 years, 10 months ago (2017-01-31 08:19:35 UTC) #37
iclelland
https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h File third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h (right): https://codereview.chromium.org/2640823004/diff/100001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h#newcode54 third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h:54: // when the V8 context is reused (i.e., after ...
3 years, 10 months ago (2017-01-31 15:29:18 UTC) #38
chasej
On 2017/01/31 15:29:18, iclelland wrote: > > What's more confusing is: > > > > ...
3 years, 10 months ago (2017-02-01 00:57:48 UTC) #41
chasej
haraken, thanks for the detailed review and good questions! I've addressed your remaining comments below. ...
3 years, 10 months ago (2017-02-01 00:59:52 UTC) #44
haraken
Still LGTM
3 years, 10 months ago (2017-02-01 04:02:55 UTC) #49
iclelland
LGTM One more question -- it appears that the test expectations under the new origin-trials ...
3 years, 10 months ago (2017-02-01 04:23:11 UTC) #50
chasej
On 2017/02/01 04:23:11, iclelland wrote: > LGTM > > One more question -- it appears ...
3 years, 10 months ago (2017-02-01 06:10:11 UTC) #51
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/2640823004/220001
3 years, 10 months ago (2017-02-01 06:14:12 UTC) #54
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 07:50:03 UTC) #57
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/8206eacd2be4650deb6d9c706533...

Powered by Google App Engine
This is Rietveld 408576698