<?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>133445</bug_id>
          
          <creation_ts>2014-06-02 07:06:06 -0700</creation_ts>
          <short_desc>[iOS] WebCore fails to build: platform/network/mac/ResourceHandleMac.mm:729:62: error: use of undeclared identifier &apos;_CFURLConnectionCopyTimingData&apos;</short_desc>
          <delta_ts>2014-06-02 17:37:55 -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>Page Loading</component>
          <version>528+ (Nightly build)</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>dfarler</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1012931</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-06-02 07:06:06 -0700</bug_when>
    <thetext>Seeing these errors on some internal buildbots:

Source/WebCore/platform/network/mac/ResourceHandleMac.mm:729:62: error: use of undeclared identifier &apos;_CFURLConnectionCopyTimingData&apos;
Source/WebCore/platform/network/mac/ResourceHandleMac.mm:727:97: error: unused parameter &apos;timing&apos; [-Werror,-Wunused-parameter]
void ResourceHandle::getConnectionTimingData(CFURLConnectionRef connection, ResourceLoadTiming&amp; timing)
2 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1012932</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-06-02 07:06:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/17090035&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1012933</commentid>
    <comment_count>2</comment_count>
      <attachid>232377</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-06-02 07:23:53 -0700</bug_when>
    <thetext>Created attachment 232377
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1012946</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-06-02 09:04:10 -0700</bug_when>
    <thetext>This patch built with an iOS Release build internally as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1012952</commentid>
    <comment_count>4</comment_count>
      <attachid>232377</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-06-02 09:17:08 -0700</bug_when>
    <thetext>Comment on attachment 232377
Patch v1

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

I don&apos;t understand this patch, what are the bots that fail? Everything was building correctly for a long time.

r=meto fix the build anyway.

&gt; Source/WebCore/platform/network/mac/ResourceHandleMac.mm:64
&gt; +#else
&gt; +typedef struct _CFURLConnection* CFURLConnectionRef;
&gt; +extern &quot;C&quot; {
&gt; +CFDictionaryRef _CFURLConnectionCopyTimingData(CFURLConnectionRef);
&gt; +}
&gt; +#endif

This shouldn&apos;t be an #else. We want to have the declarations even when the private header is included, because this way, we will find out about changes in SPIs sooner and more reliably. 

It&apos;s very difficult to debug issues caused by incorrect SPI declarations.

Also, this should be under #if USE(CFNETWORK), to match the code that uses CFNetwork.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013029</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-06-02 16:35:09 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 232377 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=232377&amp;action=review
&gt; 
&gt; I don&apos;t understand this patch, what are the bots that fail? Everything was building correctly for a long time.

See internal email thread, or the radar.

&gt; r=meto fix the build anyway.
&gt; 
&gt; &gt; Source/WebCore/platform/network/mac/ResourceHandleMac.mm:64
&gt; &gt; +#else
&gt; &gt; +typedef struct _CFURLConnection* CFURLConnectionRef;
&gt; &gt; +extern &quot;C&quot; {
&gt; &gt; +CFDictionaryRef _CFURLConnectionCopyTimingData(CFURLConnectionRef);
&gt; &gt; +}
&gt; &gt; +#endif
&gt; 
&gt; This shouldn&apos;t be an #else. We want to have the declarations even when the private header is included, because this way, we will find out about changes in SPIs sooner and more reliably. 
&gt; 
&gt; It&apos;s very difficult to debug issues caused by incorrect SPI declarations.
&gt; 
&gt; Also, this should be under #if USE(CFNETWORK), to match the code that uses CFNetwork.

I thought we tried to avoid adding headers in #if/#endif blocks unless absolutely necessary.

Technically, both this and the __has_include() below it should be in outer #if ENABLE(WEB_TIMING)/#endif macros as well.  Do we really want to do that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013036</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-06-02 17:07:54 -0700</bug_when>
    <thetext>&gt; I thought we tried to avoid adding headers in #if/#endif blocks unless absolutely necessary.

These are not WebKit headers, so I think that it&apos;s the right thing to do. With WebKit headers, yes, we try to have the guards inside the headers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013040</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-06-02 17:37:55 -0700</bug_when>
    <thetext>Committed r169551: &lt;http://trac.webkit.org/changeset/169551&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>232377</attachid>
            <date>2014-06-02 07:23:53 -0700</date>
            <delta_ts>2014-06-02 09:17:08 -0700</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-133445-20140602072328.patch</filename>
            <type>text/plain</type>
            <size>1637</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY5NTE5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYzk3OTFjZTg0N2UyMWEy
Nzc1NzEyZjg3Y2YwNTc2MmYwNzkwZGFhOS4uM2I3OTJkOTUwYjc2OGRiN2EyZmU3OTNkYWU4NDhl
NmEwY2QxYThmYiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDE0LTA2LTAyICBEYXZp
ZCBLaWx6ZXIgIDxkZGtpbHplckBhcHBsZS5jb20+CisKKyAgICAgICAgW2lPU10gV2ViQ29yZSBm
YWlscyB0byBidWlsZDogcGxhdGZvcm0vbmV0d29yay9tYWMvUmVzb3VyY2VIYW5kbGVNYWMubW06
NzI5OjYyOiBlcnJvcjogdXNlIG9mIHVuZGVjbGFyZWQgaWRlbnRpZmllciAnX0NGVVJMQ29ubmVj
dGlvbkNvcHlUaW1pbmdEYXRhJworICAgICAgICA8aHR0cDovL3dlYmtpdC5vcmcvYi8xMzM0NDU+
CisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS8xNzA5MDAzNT4KKworICAgICAgICBSZXZpZXdlZCBi
eSBOT0JP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4K
KyNlbHNlCit0eXBlZGVmIHN0cnVjdCBfQ0ZVUkxDb25uZWN0aW9uKiBDRlVSTENvbm5lY3Rpb25S
ZWY7CitleHRlcm4gIkMiIHsKK0NGRGljdGlvbmFyeVJlZiBfQ0ZVUkxDb25uZWN0aW9uQ29weVRp
bWluZ0RhdGEoQ0ZVUkxDb25uZWN0aW9uUmVmKTsKK30KKyNlbmRpZgorCiAjaWYgX19oYXNfaW5j
bHVkZSg8Rm91bmRhdGlvbi9OU1VSTENvbm5lY3Rpb25Qcml2YXRlLmg+KQogI2ltcG9ydCA8Rm91
bmRhdGlvbi9OU1VSTENvbm5lY3Rpb25Qcml2YXRlLmg+CiAjZWxzZQo=
</data>
<flag name="review"
          id="256877"
          type_id="1"
          status="+"
          setter="ap"
    />
    <flag name="commit-queue"
          id="256883"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>