Skip to content
  • commit-queue@webkit.org's avatar
    REGRESSION:Bindings sequence<T> in Console.idl, Internals.idl and... · 12bd64b5
    commit-queue@webkit.org authored
    REGRESSION:Bindings sequence<T> in Console.idl, Internals.idl and ScriptProfileNode.idl should be T[]
    https://bugs.webkit.org/show_bug.cgi?id=84863
    
    Patch by Vineet Chaudhary <vineet.chaudhary@motorola.com> on 2012-06-13
    Reviewed by Kentaro Hara.
    
    With reference to http://www.w3.org/TR/WebIDL/#idl-sequence
    "Sequences must not be used as the type of an attribute, constant or exception field."
    So we should use T[] instead of sequence<T>.
    
    Source/WebCore:
    
    Tests: bindings/scripts/test/TestObj.idl
           fast/harness/user-preferred-language.html
           inspector/profiler/cpu-profiler-profiling-without-inspector.html
           media/track/track-language-preference.html
    
    * bindings/scripts/CodeGenerator.pm:
    (GetSequenceType): Getter for getting sequence type.
    (GetArrayType): Getter for getting array type.
    (AssertNotSequenceType): Check sequences must not be used as the type of an attribute,
    constant or exception field.
    * bindings/scripts/CodeGeneratorCPP.pm:
    (SkipFunction): Exclude bindings code for type sequence.
    ...
    12bd64b5