| Index: Source/bindings/templates/interface.cpp
 | 
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
 | 
| index 7078e454decd8f034d5359708d056b968aef5bfb..421bcb09427bf54a557d166e7dfb5c04e2a2f689 100644
 | 
| --- a/Source/bindings/templates/interface.cpp
 | 
| +++ b/Source/bindings/templates/interface.cpp
 | 
| @@ -986,9 +986,10 @@ static void configure{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> funct
 | 
|      {# Needed for legacy support of document.all #}
 | 
|      functionTemplate->InstanceTemplate()->MarkAsUndetectable();
 | 
|      {% endif %}
 | 
| -    {% for method in methods if not method.do_not_check_signature %}
 | 
| +    {% for method in methods %}
 | 
|      {# install_custom_signature #}
 | 
| -    {% if not method.overload_index or method.overload_index == 1 %}
 | 
| +    {% if not(method.overloads.do_not_check_signature_all if method.overloads else
 | 
| +              (method.overload_index or method.do_not_check_signature)) %}
 | 
|      {# For overloaded methods, only generate one accessor #}
 | 
|      {% filter conditional(method.conditional_string) %}
 | 
|      {% if method.is_do_not_check_security %}
 | 
| @@ -1002,18 +1003,20 @@ static void configure{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> funct
 | 
|      {{install_do_not_check_security_signature(method)}}
 | 
|      {% endif %}
 | 
|      {% else %}{# is_do_not_check_security #}
 | 
| +    {% set runtime_enabled_function = method.overloads.runtime_enabled_function_all if method.overloads else
 | 
| +                                      method.runtime_enabled_function %}
 | 
|      {% if method.is_per_world_bindings %}
 | 
|      if (DOMWrapperWorld::current(isolate).isMainWorld()) {
 | 
| -        {% filter runtime_enabled(method.runtime_enabled_function) %}
 | 
| +        {% filter runtime_enabled(runtime_enabled_function) %}
 | 
|          {{install_custom_signature(method, 'ForMainWorld')}}
 | 
|          {% endfilter %}
 | 
|      } else {
 | 
| -        {% filter runtime_enabled(method.runtime_enabled_function) %}
 | 
| +        {% filter runtime_enabled(runtime_enabled_function) %}
 | 
|          {{install_custom_signature(method)}}
 | 
|          {% endfilter %}
 | 
|      }
 | 
|      {% else %}
 | 
| -    {% filter runtime_enabled(method.runtime_enabled_function) %}
 | 
| +    {% filter runtime_enabled(runtime_enabled_function) %}
 | 
|      {{install_custom_signature(method)}}
 | 
|      {% endfilter %}
 | 
|      {% endif %}
 | 
| 
 |