DescriptionExplicitly mark first 2 args of addEventListener/removeEventListener as optional
addEventListener and removeEventListener should require 2 arguments
(per spec), but legacy content calls these with 0 or 1 arguments.
For background, see this bug:
https://code.google.com/p/chromium/issues/detail?id=249598
This results in a special case in the CG, and an IDL that doesn't reflect
reality.
This updates the IDL to reflect reality, and removes the special-casing
from the CG, removing 3 FIXMEs!
There's now only 1 EventTarget FIXME in the templates, namely
the frame security check (on window).
This changes
addEventListener.length
removeEventListener.length
...from 2 to 0, reflecting reality.
R=haraken
BUG=345503
BUG=249598
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169631
Patch Set 1 #Patch Set 2 : Remove other special case #Patch Set 3 : Add test, fix crash #Patch Set 4 : Template cleanup #Patch Set 5 : More generic #Patch Set 6 : Update test result (addEventListener.length now 0, not 2) #Messages
Total messages: 11 (0 generated)
|