Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 9affae262495d67d4fd6fdb460ec011387010573..2e218d31b6d387d82110ade52c76f075455f6e2d 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -21,8 +21,7 @@ static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
{% endif %} |
{# Security checks #} |
- {# FIXME: change to method.is_check_security_for_window #} |
- {% if interface_name == 'EventTarget' %} |
+ {% if is_check_security_for_window %} |
haraken
2014/06/12 02:15:45
It doesn't make sense to introduce [CheckSecurity=
Nils Barth (inactive)
2014/06/12 02:51:52
It's slightly trickier:
EventTarget also has a !wi
|
if (DOMWindow* window = impl->toDOMWindow()) { |
if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), window->frame(), exceptionState)) { |
{{throw_from_exception_state(method)}}; |