Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp |
| diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp |
| index 9be91610ee1edda69a3e73de1130f51812dd5a9c..8ada3f59c8d17d154470d14275dfb401b3e58582 100644 |
| --- a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp |
| +++ b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp |
| @@ -568,6 +568,12 @@ void installOriginTrialsForModules(ScriptState* scriptState) |
| V8NavigatorPartial::installWebBluetooth(scriptState); |
| } |
| } |
| + |
| + if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (RuntimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatureEnabled("ForeignFetch"))) { |
|
iclelland
2016/07/27 18:09:17
Given the rest of the discussion, should this be t
Marijn Kruisselbrink
2016/08/09 23:30:58
Yes, done.
|
| + if (executionContext->isServiceWorkerGlobalScope()) { |
| + V8ServiceWorkerGlobalScope::installForeignFetch(scriptState, global); |
| + } |
| + } |
| } |
| void registerInstallOriginTrialsForModules() |