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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28477</bug_id>
          
          <creation_ts>2015-04-13 06:31:35 +0000</creation_ts>
          <short_desc>Warn against boolean arguments defaulting to true</short_desc>
          <delta_ts>2015-07-07 06:19:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Anne">annevk</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119456</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-04-13 06:31:35 +0000</bug_when>
    <thetext>Is there any API other than XMLHttpRequest where this happens?

Note that even XMLHttpRequest does not strictly do this since it needs to overload. So perhaps we could simply outlaw `= true` in general...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119464</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-04-13 12:52:31 +0000</bug_when>
    <thetext>I don&apos;t see any instances of optional boolean args defaulting true.

There seem to be a bunch of dictionary boolean options defaulting true, though...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119467</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-04-13 13:04:51 +0000</bug_when>
    <thetext>Stable features? That seems unfortunate. I guess it&apos;s less of a problem with dictionaries, but it still seems bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119471</commentid>
    <comment_count>3</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2015-04-13 14:06:06 +0000</bug_when>
    <thetext>Yeah, dictionary arguments defaulting to true seems unfortunate/confusing too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119472</commentid>
    <comment_count>4</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2015-04-13 14:08:12 +0000</bug_when>
    <thetext>Yet here we are:
http://mxr.mozilla.org/mozilla-central/search?string=%3D+true&amp;find=\.webidl%24&amp;tree=mozilla-central</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119474</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-04-13 14:42:02 +0000</bug_when>
    <thetext>&gt; Stable features?

WebGL, Canvas2d, IDB, SVGGraphicsElement.getBBox, WebRTC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121839</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2015-07-07 06:19:40 +0000</bug_when>
    <thetext>https://github.com/heycam/webidl/commit/fcc7e379bfbf155a8eafcbb23b20f46ad21e4e6b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>