| 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 344368f6507f5916270d42649b769ea2c52a458a..098a4180c05a7ff283381be8899540340aea9b0e 100644
|
| --- a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
|
| +++ b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
|
| @@ -611,6 +611,16 @@ void installOriginTrialsForModules(ScriptState* scriptState)
|
| }
|
| }
|
|
|
| + if (!originTrialContext->featureBindingsInstalled("WebUSB") && (RuntimeEnabledFeatures::webUSBEnabled() || originTrialContext->isFeatureEnabled("WebUSB"))) {
|
| + if (executionContext->isDocument()) {
|
| + // For global interfaces e.g. USBInterface.
|
| + V8WindowPartial::installWebUSB(scriptState, global);
|
| + // For navigator interfaces e.g. navigator.usb.
|
| + V8NavigatorPartial::installWebUSB(scriptState);
|
| + }
|
| + }
|
| +
|
| +
|
| if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (RuntimeEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled("ForeignFetch"))) {
|
| if (executionContext->isServiceWorkerGlobalScope()) {
|
| V8ServiceWorkerGlobalScope::installForeignFetch(scriptState, global);
|
|
|