<?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>160385</bug_id>
          
          <creation_ts>2016-07-30 17:28:35 -0700</creation_ts>
          <short_desc>Drop [StrictTypeChecking] support for operation parameters of DOMString / enumeration types</short_desc>
          <delta_ts>2016-08-02 10:07:59 -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>Bindings</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>160394</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>WebExposed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>160394</dependson>
          <blocked>160382</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1215912</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-07-30 17:28:35 -0700</bug_when>
    <thetext>Drop [StrictTypeChecking] support for operation parameters of DOMString / enumeration types. Using [StrictTypeChecking] would cause us to throw a TypeError if the value passed by JS is not null / undefined / a string / an object. This behavior is non-standard as the WebIDL says we should merely call ToString() on the value:
- http://heycam.github.io/webidl/#es-DOMString
- http://heycam.github.io/webidl/#es-enumeration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215915</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-07-30 17:34:32 -0700</bug_when>
    <thetext>It looks like this is used only for the following overloaded operations to help with overload resolution:
Source/WebCore/html/canvas/CanvasRenderingContext2D.idl:    void setStrokeColor([StrictTypeChecking] DOMString color, optional unrestricted float alpha);
Source/WebCore/html/canvas/CanvasRenderingContext2D.idl:    void setFillColor([StrictTypeChecking] DOMString color, optional unrestricted float alpha);

I will find a better way to implement this without requiring an additional IDL attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216262</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-01 14:05:33 -0700</bug_when>
    <thetext>Should get fixed by https://bugs.webkit.org/show_bug.cgi?id=160394.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216515</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-02 10:07:59 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 160394 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>