Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: Source/bindings/scripts/v8_interface.py

Issue 329053002: Throw TypeError when addEventListener or removeEventListener are called without enough arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/js/function-length-expected.txt ('k') | Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/v8_interface.py
diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py
index c2719909e555954b6a4c662387a80ed0d82aac22..d9bd53866c9fbd7a7e380aabe8fb877efb43a349 100644
--- a/Source/bindings/scripts/v8_interface.py
+++ b/Source/bindings/scripts/v8_interface.py
@@ -90,9 +90,10 @@ def interface_context(interface):
# [ActiveDOMObject]
is_active_dom_object = 'ActiveDOMObject' in extended_attributes
- # [CheckSecurity]
- is_check_security = 'CheckSecurity' in extended_attributes
- if is_check_security:
+ # [CheckSecurity=Frame]
+ is_check_security_for_frame = has_extended_attribute_value(
+ interface, 'CheckSecurity', 'Frame')
+ if is_check_security_for_frame:
includes.add('bindings/v8/BindingSecurity.h')
# [DependentLifetime]
@@ -151,7 +152,7 @@ def interface_context(interface):
'interface_name': interface.name,
'is_active_dom_object': is_active_dom_object,
'is_audio_buffer': is_audio_buffer,
- 'is_check_security': is_check_security,
+ 'is_check_security_for_frame': is_check_security_for_frame,
'is_dependent_lifetime': is_dependent_lifetime,
'is_document': is_document,
'is_event_target': inherits_interface(interface.name, 'EventTarget'),
« no previous file with comments | « LayoutTests/fast/js/function-length-expected.txt ('k') | Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698