| Index: Source/bindings/templates/methods.cpp
 | 
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
 | 
| index dff9e18015d330e09aa1a373c74adc63550c4b3b..1d95f3625437db5339c56cb8d94e8458d4523ee5 100644
 | 
| --- a/Source/bindings/templates/methods.cpp
 | 
| +++ b/Source/bindings/templates/methods.cpp
 | 
| @@ -18,9 +18,15 @@ static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const
 | 
|      {% if method.is_custom_element_callbacks %}
 | 
|      CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
 | 
|      {% endif %}
 | 
| -    {% if method.is_raises_exception %}
 | 
| +    {% if method.is_raises_exception or method.is_check_security_for_frame %}
 | 
|      ExceptionState exceptionState(info.Holder(), info.GetIsolate());
 | 
|      {% endif %}
 | 
| +    {% if method.is_check_security_for_frame %}
 | 
| +    if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame(), exceptionState)) {
 | 
| +        exceptionState.throwIfNeeded();
 | 
| +        return;
 | 
| +    }
 | 
| +    {% endif %}
 | 
|      {% if method.is_check_security_for_node %}
 | 
|      if (!BindingSecurity::shouldAllowAccessToNode(imp->{{method.name}}(exceptionState), exceptionState)) {
 | 
|          v8SetReturnValueNull(info);
 | 
| 
 |