| Index: third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| index 09ad2024f7d027bf135ec94447c2a1cdf56f72a0..dec531fd2a4f8ccfc0605058fffc0d95d09ce3e1 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| @@ -423,6 +423,12 @@ def origin_trial_enabled_function_name(definition_or_member):
|
| 'not be specified on the same definition: %s'
|
| % definition_or_member.name)
|
|
|
| + if is_feature_policy_enabled and 'SecureContext' in extended_attributes:
|
| + raise Exception('[FeaturePolicy] and [SecureContext] must '
|
| + 'not be specified on the same definition '
|
| + '(see https://crbug.com/695123 for workaround): %s'
|
| + % definition_or_member.name)
|
| +
|
| if is_feature_policy_enabled:
|
| includes.add('bindings/core/v8/ScriptState.h')
|
| includes.add('platform/feature_policy/FeaturePolicy.h')
|
|
|