| Index: Source/bindings/scripts/v8_interface.py
|
| diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py
|
| index 1e1bd83912a5de375739dec37d9ffac3873a37b4..dafeaa6e4aa3ff0857ec3d312130abdf8011e462 100644
|
| --- a/Source/bindings/scripts/v8_interface.py
|
| +++ b/Source/bindings/scripts/v8_interface.py
|
| @@ -285,7 +285,7 @@ def interface_context(interface):
|
| attributes = [v8_attributes.attribute_context(interface, attribute)
|
| for attribute in interface.attributes]
|
|
|
| - has_conditional_attributes = any(attribute['per_context_enabled_function'] or attribute['exposed_test'] for attribute in attributes)
|
| + has_conditional_attributes = any(attribute['exposed_test'] for attribute in attributes)
|
| if has_conditional_attributes and interface.is_partial:
|
| raise Exception('Conditional attributes between partial interfaces in modules and the original interfaces(%s) in core are not allowed.' % interface.name)
|
|
|
| @@ -294,15 +294,13 @@ def interface_context(interface):
|
| 'has_accessor_configuration': any(
|
| attribute['is_expose_js_accessors'] and
|
| not (attribute['is_static'] or
|
| - attribute['runtime_enabled_function'] or
|
| - attribute['per_context_enabled_function']) and
|
| + attribute['runtime_enabled_function']) and
|
| attribute['should_be_exposed_to_script']
|
| for attribute in attributes),
|
| 'has_attribute_configuration': any(
|
| not (attribute['is_expose_js_accessors'] or
|
| attribute['is_static'] or
|
| - attribute['runtime_enabled_function'] or
|
| - attribute['per_context_enabled_function'])
|
| + attribute['runtime_enabled_function'])
|
| and attribute['should_be_exposed_to_script']
|
| for attribute in attributes),
|
| 'has_conditional_attributes': has_conditional_attributes,
|
| @@ -516,7 +514,6 @@ def interface_context(interface):
|
| # original interface will register instead of partial interface.
|
| if overloads['has_partial_overloads'] and interface.is_partial:
|
| continue
|
| - per_context_enabled_function = overloads['per_context_enabled_function_all']
|
| conditionally_exposed_function = overloads['exposed_test_all']
|
| runtime_enabled_function = overloads['runtime_enabled_function_all']
|
| has_custom_registration = (overloads['has_custom_registration_all'] or
|
| @@ -524,7 +521,6 @@ def interface_context(interface):
|
| else:
|
| if not method['visible']:
|
| continue
|
| - per_context_enabled_function = method['per_context_enabled_function']
|
| conditionally_exposed_function = method['exposed_test']
|
| runtime_enabled_function = method['runtime_enabled_function']
|
| has_custom_registration = method['has_custom_registration']
|
| @@ -532,7 +528,7 @@ def interface_context(interface):
|
| if has_custom_registration:
|
| custom_registration_methods.append(method)
|
| continue
|
| - if per_context_enabled_function or conditionally_exposed_function:
|
| + if conditionally_exposed_function:
|
| conditionally_enabled_methods.append(method)
|
| continue
|
| if runtime_enabled_function:
|
| @@ -730,7 +726,6 @@ def overloads_context(interface, overloads):
|
| 'maxarg': lengths[-1],
|
| 'measure_all_as': common_value(overloads, 'measure_as'), # [MeasureAs]
|
| 'minarg': lengths[0],
|
| - 'per_context_enabled_function_all': common_value(overloads, 'per_context_enabled_function'), # [PerContextEnabled]
|
| 'returns_promise_all': promise_overload_count > 0,
|
| 'runtime_determined_lengths': runtime_determined_lengths,
|
| 'runtime_enabled_function_all': common_value(overloads, 'runtime_enabled_function'), # [RuntimeEnabled]
|
|
|