<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>149406</bug_id>
          
          <creation_ts>2015-09-21 07:47:36 -0700</creation_ts>
          <short_desc>Fix warnings in IDLParser.pm</short_desc>
          <delta_ts>2022-08-19 16:49:27 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>cdumez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ossy</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1127638</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-21 07:47:36 -0700</bug_when>
    <thetext>There are many warnings come from IDLParser.pm because of using uninitialized value in regexps:

Use of uninitialized value $type in pattern match (m//) at /home/ossy/WebKit/Source/WebCore/bindings/scripts/IDLParser.pm line 303.
Use of uninitialized value $type in substitution (s///) at /home/ossy/WebKit/Source/WebCore/bindings/scripts/IDLParser.pm line 309.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127639</commentid>
    <comment_count>1</comment_count>
      <attachid>261655</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-21 07:49:35 -0700</bug_when>
    <thetext>Created attachment 261655
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127813</commentid>
    <comment_count>2</comment_count>
      <attachid>261655</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-09-21 16:22:22 -0700</bug_when>
    <thetext>Comment on attachment 261655
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=261655&amp;action=review

r=me with nit

&gt; Source/WebCore/bindings/scripts/IDLParser.pm:311
&gt; +   }

This needs another space of indentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127966</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-22 02:24:25 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 261655 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=261655&amp;action=review
&gt; 
&gt; r=me with nit
&gt; 
&gt; &gt; Source/WebCore/bindings/scripts/IDLParser.pm:311
&gt; &gt; +   }
&gt; 
&gt; This needs another space of indentation.

Good catch, I&apos;ll fix it before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127967</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-22 02:32:34 -0700</bug_when>
    <thetext>Committed r190111: &lt;http://trac.webkit.org/changeset/190111&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128198</commentid>
    <comment_count>5</comment_count>
      <attachid>261655</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-09-22 18:55:24 -0700</bug_when>
    <thetext>Comment on attachment 261655
Patch

This looks like this may be papering over a real bug. How can an attribute or parameter not have a type?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128199</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-09-22 19:02:59 -0700</bug_when>
    <thetext>It looks like the parser has trouble parsing:
[Unscopeable, RaisesException, Custom] void prepend((Node or DOMString)... nodes);
[Unscopeable, RaisesException, Custom] void append((Node or DOMString)... nodes);
in ParentNode.idl

and

[Unscopeable, RaisesException, Custom] void before((Node or DOMString)... nodes);
[Unscopeable, RaisesException, Custom] void after((Node or DOMString)... nodes);
[Unscopeable, RaisesException, Custom] void replaceWith((Node or DOMString)... nodes);
in ChildNode.idl

Likely the issue is that our parser does not support unions or variadic arguments.

Thankfully, even though the parser does not parse them properly, it does not cause problems because we use Custom bindings for these.

The proper fix would be to add support for these type of parameters to our IDL parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128200</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-09-22 19:05:22 -0700</bug_when>
    <thetext>FYI, the problem is unions (Node or DOMString). Variadic parameters seem to be fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128987</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-28 02:51:56 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; FYI, the problem is unions (Node or DOMString). Variadic parameters seem to
&gt; be fine.

Could you file a new bug report for this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892557</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-19 16:49:27 -0700</bug_when>
    <thetext>*** Bug 147132 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>261655</attachid>
            <date>2015-09-21 07:49:35 -0700</date>
            <delta_ts>2015-09-21 16:22:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-149406-20150921164918.patch</filename>
            <type>text/plain</type>
            <size>1328</size>
            <attacher name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U291cmNlL1dlYkNvcmUvYmluZGluZ3Mvc2NyaXB0cy9J
RExQYXJzZXIucG0KaW5kZXggMjkyYTNlZDE5ZGViYWZiOTFjNjkzYmIyNjZmZTQ1ZGEyOGMzNWQx
Mi4uN2Q4Mzk1NDQ1YzE4MzQxYzdjOTIzNzZmZDZiM2JhZGEzNGU4MGIyMSAxMDA2NDQKLS0tIGEv
U291cmNlL1dlYkNvcmUvYmluZGluZ3Mvc2NyaXB0cy9JRExQYXJzZXIucG0KKysrIGIvU291cmNl
L1dlYkNvcmUvYmluZGluZ3Mvc2NyaXB0cy9JRExQYXJzZXIucG0KQEAgLTMwMCwxMyArMzAwLDE1
IEBAIHN1YiB1bnF1b3RlU3RyaW5nCiBzdWIgdHlwZUhhc051bGxhYmxlU3VmZml4CiB7CiAgICAg
bXkgJHR5cGUgPSBzaGlmdDsKLSAgICByZXR1cm4gJHR5cGUgPX4gL1w/JC87CisgICAgcmV0dXJu
ICR0eXBlID8gJHR5cGUgPX4gL1w/JC8gOiAwOwogfQogCiBzdWIgdHlwZVJlbW92ZU51bGxhYmxl
U3VmZml4CiB7CiAgICAgbXkgJHR5cGUgPSBzaGlmdDsKLSAgICAkdHlwZSA9fiBzL1w/Ly9nOwor
ICAgIGlmICgkdHlwZSkgeworICAgICAgICAkdHlwZSA9fiBzL1w/Ly9nOworICAgfQogICAgIHJl
dHVybiAkdHlwZTsKIH0KIAo=
</data>
<flag name="review"
          id="286840"
          type_id="1"
          status="+"
          setter="achristensen"
    />
    <flag name="commit-queue"
          id="286841"
          type_id="3"
          status="-"
          setter="achristensen"
    />
          </attachment>
      

    </bug>

</bugzilla>