| Index: third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| index 6f6901392d4538cb41b636a93a5a2e5195c500bc..db6ab27a37cba8f45ab45b335572c3c05981d572 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| @@ -557,10 +557,10 @@ def interface_context(interface):
|
|
|
| # Conditionally enabled members
|
| has_conditional_attributes_on_instance = any(
|
| - attribute['exposed_test'] and attribute['on_instance']
|
| + (attribute['exposed_test'] or attribute['secure_context_test']) and attribute['on_instance']
|
| for attribute in attributes)
|
| has_conditional_attributes_on_prototype = any(
|
| - attribute['exposed_test'] and attribute['on_prototype']
|
| + (attribute['exposed_test'] or attribute['secure_context_test']) and attribute['on_prototype']
|
| for attribute in attributes)
|
| context.update({
|
| 'has_conditional_attributes_on_instance':
|
| @@ -788,6 +788,7 @@ def overloads_context(interface, overloads):
|
| 'runtime_determined_lengths': runtime_determined_lengths,
|
| 'runtime_determined_maxargs': runtime_determined_maxargs,
|
| 'runtime_enabled_function_all': common_value(overloads, 'runtime_enabled_function'), # [RuntimeEnabled]
|
| + 'secure_context_test_all': common_value(overloads, 'secure_context_test'), # [SecureContext]
|
| 'valid_arities': (lengths
|
| # Only need to report valid arities if there is a gap in the
|
| # sequence of possible lengths, otherwise invalid length means
|
|
|