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

Issue 2116503004: Make Foreign Fetch an origin trial. (Closed)

Created:
4 years, 5 months ago by Marijn Kruisselbrink
Modified:
4 years, 4 months ago
Reviewers:
falken, iclelland, pfeldman
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, gavinp+prerender_chromium.org, haraken, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, loading-reviews_chromium.org, michaeln, mmenke, nhiroki, Randy Smith (Not in Mondays), serviceworker-reviews, tzik, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Foreign Fetch an origin trial. This makes both Foreign Fetch and Link rel=serviceworker available behind the ForeignFetch origin trial. For foreign fetch only the service worker registering for and handling foreign fetch events needs to opt in to the origin trial. It can then intercept requests made from any website, including websites that haven't opted in to the origin trial. BUG=540509, 582310, 590873 Committed: https://crrev.com/33bf998f2e0bc85a90016744f77c5a01d448cefe Cr-Commit-Position: refs/heads/master@{#411759}

Patch Set 1 #

Patch Set 2 : actually install origin trial code #

Patch Set 3 : fixes, and temporary tests #

Patch Set 4 : use .htaccess for Origin-Trial headers #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Total comments: 1

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : Don't actually commit htaccess files #

Patch Set 11 : Check for correct RuntimeEnabledFeatures to determine which features were installed. #

Total comments: 2

Patch Set 12 : don't dispatch foreign fetch events after tokens expire #

Patch Set 13 : minor fixes #

Total comments: 10

Patch Set 14 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -32 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -11 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +18 lines, -0 lines 0 comments Download
M content/browser/service_worker/link_header_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/origin_trials/trial_token_validator.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M content/common/origin_trials/trial_token_validator.cc View 1 2 3 4 5 6 2 chunks +38 lines, -0 lines 0 comments Download
M content/common/origin_trials/trial_token_validator_unittest.cc View 1 2 3 4 5 chunks +63 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/RelList.cpp View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ForeignFetchOptions.idl View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 52 (27 generated)
Marijn Kruisselbrink
This is my initial attempt at exposing foreign fetch behind an origin trial; a couple ...
4 years, 5 months ago (2016-07-01 23:52:17 UTC) #3
Marijn Kruisselbrink
On 2016/07/01 at 23:52:17, Marijn Kruisselbrink wrote: > This is my initial attempt at exposing ...
4 years, 5 months ago (2016-07-01 23:56:14 UTC) #4
falken
Just to clarify the origin trial. If a page on a.com makes a request to ...
4 years, 5 months ago (2016-07-04 03:53:18 UTC) #6
iclelland
On 2016/07/01 23:56:14, Marijn Kruisselbrink wrote: > On 2016/07/01 at 23:52:17, Marijn Kruisselbrink wrote: > ...
4 years, 5 months ago (2016-07-05 13:47:36 UTC) #7
Marijn Kruisselbrink
On 2016/07/04 at 03:53:18, falken wrote: > Just to clarify the origin trial. If a ...
4 years, 5 months ago (2016-07-06 22:52:01 UTC) #8
falken
On 2016/07/06 22:52:01, Marijn Kruisselbrink wrote: > On 2016/07/04 at 03:53:18, falken wrote: > > ...
4 years, 5 months ago (2016-07-07 00:21:45 UTC) #9
iclelland
On 2016/07/06 22:52:01, Marijn Kruisselbrink wrote: > On 2016/07/04 at 03:53:18, falken wrote: > > ...
4 years, 5 months ago (2016-07-08 19:35:47 UTC) #10
Marijn Kruisselbrink
On 2016/07/08 at 19:35:47, iclelland wrote: > On 2016/07/06 22:52:01, Marijn Kruisselbrink wrote: > > ...
4 years, 5 months ago (2016-07-11 23:47:29 UTC) #11
Marijn Kruisselbrink
Still not sure if what I'm doing is the right/best thing to do with regard ...
4 years, 4 months ago (2016-07-26 20:07:26 UTC) #18
iclelland
> > > > > - does the way I'm calling OriginTrialPolicy::IsFeatureDisabled() make > > ...
4 years, 4 months ago (2016-07-26 20:32:06 UTC) #19
Marijn Kruisselbrink
On 2016/07/26 at 20:32:06, iclelland wrote: > > > > > > - does the ...
4 years, 4 months ago (2016-07-26 20:52:48 UTC) #20
iclelland
On 2016/07/26 20:52:48, Marijn Kruisselbrink wrote: > On 2016/07/26 at 20:32:06, iclelland wrote: > > ...
4 years, 4 months ago (2016-07-27 18:08:33 UTC) #25
iclelland
Everything LGTM, other than this one question. https://codereview.chromium.org/2116503004/diff/220001/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp File third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp (right): https://codereview.chromium.org/2116503004/diff/220001/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp#newcode572 third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp:572: if (!originTrialContext->featureBindingsInstalled("ForeignFetch") ...
4 years, 4 months ago (2016-07-27 18:09:17 UTC) #26
Marijn Kruisselbrink
https://codereview.chromium.org/2116503004/diff/220001/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp File third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp (right): https://codereview.chromium.org/2116503004/diff/220001/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp#newcode572 third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp:572: if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (RuntimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatureEnabled("ForeignFetch"))) { On 2016/07/27 ...
4 years, 4 months ago (2016-08-09 23:30:58 UTC) #32
Marijn Kruisselbrink
+pfeldman for OWNERS review Of course I won't actually land this until the intent-to-experiment (https://groups.google.com/a/chromium.org/d/msg/blink-dev/sIzHpZVhmBE/fF0Qf15qAQAJ) ...
4 years, 4 months ago (2016-08-09 23:33:13 UTC) #34
pfeldman
https://codereview.chromium.org/2116503004/diff/260001/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp File third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp (right): https://codereview.chromium.org/2116503004/diff/260001/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp#newcode819 third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp:819: if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (RuntimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatureEnabled("ForeignFetch"))) { Here and ...
4 years, 4 months ago (2016-08-11 00:55:22 UTC) #37
Marijn Kruisselbrink
https://codereview.chromium.org/2116503004/diff/260001/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp File third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp (right): https://codereview.chromium.org/2116503004/diff/260001/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp#newcode819 third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp:819: if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (RuntimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatureEnabled("ForeignFetch"))) { On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 16:49:45 UTC) #38
Marijn Kruisselbrink
https://codereview.chromium.org/2116503004/diff/260001/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp File third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp (right): https://codereview.chromium.org/2116503004/diff/260001/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp#newcode819 third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp:819: if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (RuntimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatureEnabled("ForeignFetch"))) { On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 18:11:19 UTC) #39
Marijn Kruisselbrink
pfeldman: ping (if at all possible I'd like to land this today, being feature freeze ...
4 years, 4 months ago (2016-08-12 17:33:50 UTC) #40
pfeldman
https://codereview.chromium.org/2116503004/diff/260001/content/browser/service_worker/foreign_fetch_request_handler.cc File content/browser/service_worker/foreign_fetch_request_handler.cc (right): https://codereview.chromium.org/2116503004/diff/260001/content/browser/service_worker/foreign_fetch_request_handler.cc#newcode69 content/browser/service_worker/foreign_fetch_request_handler.cc:69: if (!base::CommandLine::ForCurrentProcess()->HasSwitch( If I did not specify the experimental-web-platform ...
4 years, 4 months ago (2016-08-12 18:49:23 UTC) #41
Marijn Kruisselbrink
addressed your comments https://codereview.chromium.org/2116503004/diff/260001/content/browser/service_worker/foreign_fetch_request_handler.cc File content/browser/service_worker/foreign_fetch_request_handler.cc (right): https://codereview.chromium.org/2116503004/diff/260001/content/browser/service_worker/foreign_fetch_request_handler.cc#newcode69 content/browser/service_worker/foreign_fetch_request_handler.cc:69: if (!base::CommandLine::ForCurrentProcess()->HasSwitch( On 2016/08/12 at 18:49:23, ...
4 years, 4 months ago (2016-08-12 19:15:40 UTC) #44
pfeldman
lgtm
4 years, 4 months ago (2016-08-12 19:27:08 UTC) #45
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/2116503004/280001
4 years, 4 months ago (2016-08-12 19:29:45 UTC) #49
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 4 months ago (2016-08-12 20:42:38 UTC) #50
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 20:44:07 UTC) #52
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/33bf998f2e0bc85a90016744f77c5a01d448cefe
Cr-Commit-Position: refs/heads/master@{#411759}

Powered by Google App Engine
This is Rietveld 408576698