| Index: third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl b/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl
|
| index 6664c77b55a0dc3b6598c5828a451ca6d408004d..fb2521d5b91174ba8b38d0103f4fd2b35659d002 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl
|
| @@ -6,11 +6,14 @@
|
| // https://github.com/w3c/ServiceWorker/issues/920
|
| [
|
| OriginTrialEnabled=ServiceWorkerNavigationPreload,
|
| - SecureContext,
|
| Exposed=(Window,Worker),
|
| ] interface NavigationPreloadManager {
|
| - [CallWith=ScriptState] Promise<void> enable();
|
| - [CallWith=ScriptState] Promise<void> disable();
|
| - [CallWith=ScriptState] Promise<void> setHeaderValue(ByteString value);
|
| - [CallWith=ScriptState] Promise<NavigationPreloadState> getState();
|
| + // TODO(mgiuca): Put SecureContext on the interface, not individual methods.
|
| + // Currently prevented due to clash with OriginTrialEnabled. This can be
|
| + // resolved either when OriginTrialEnabled is removed, or
|
| + // https://crbug.com/695123 is fixed.
|
| + [SecureContext, CallWith=ScriptState] Promise<void> enable();
|
| + [SecureContext, CallWith=ScriptState] Promise<void> disable();
|
| + [SecureContext, CallWith=ScriptState] Promise<void> setHeaderValue(ByteString value);
|
| + [SecureContext, CallWith=ScriptState] Promise<NavigationPreloadState> getState();
|
| };
|
|
|