<?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>127471</bug_id>
          
          <creation_ts>2014-01-23 01:15:16 -0800</creation_ts>
          <short_desc>[iOS] [WK2] WKContentView has a black background</short_desc>
          <delta_ts>2014-01-23 10:47:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</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="Tim Horton">thorton</reporter>
          <assigned_to name="Tim Horton">thorton</assigned_to>
          <cc>andersca</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>971074</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-01-23 01:15:16 -0800</bug_when>
    <thetext>... which is frequently exposed during loading.

It shouldn&apos;t be black (it shouldn&apos;t need a background at all!).

&lt;rdar://problem/12287363&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971076</commentid>
    <comment_count>1</comment_count>
      <attachid>221961</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-01-23 01:19:25 -0800</bug_when>
    <thetext>Created attachment 221961
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971085</commentid>
    <comment_count>2</comment_count>
      <attachid>221961</attachid>
    <who name="Ian Henderson">ian</who>
    <bug_when>2014-01-23 02:20:06 -0800</bug_when>
    <thetext>Comment on attachment 221961
patch

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

&gt; Source/WebKit2/UIProcess/API/ios/WKContentView.mm:52
&gt; +@end

Is this how we deal with private headers on the Mac?  Why even include the private header if we&apos;re going to make this category?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971129</commentid>
    <comment_count>3</comment_count>
      <attachid>221961</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2014-01-23 07:44:16 -0800</bug_when>
    <thetext>Comment on attachment 221961
patch

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

&gt;&gt; Source/WebKit2/UIProcess/API/ios/WKContentView.mm:52
&gt;&gt; +@end
&gt; 
&gt; Is this how we deal with private headers on the Mac?  Why even include the private header if we&apos;re going to make this category?

I think we usually do the category as an #else clause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971131</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2014-01-23 07:45:11 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 221961 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=221961&amp;action=review
&gt; 
&gt; &gt;&gt; Source/WebKit2/UIProcess/API/ios/WKContentView.mm:52
&gt; &gt;&gt; +@end
&gt; &gt; 
&gt; &gt; Is this how we deal with private headers on the Mac?  Why even include the private header if we&apos;re going to make this category?
&gt; 
&gt; I think we usually do the category as an #else clause.

Oh, and reason we do it is to catch errors for people who have the header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971157</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-01-23 08:58:28 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (From update of attachment 221961 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=221961&amp;action=review
&gt; &gt; 
&gt; &gt; &gt;&gt; Source/WebKit2/UIProcess/API/ios/WKContentView.mm:52
&gt; &gt; &gt;&gt; +@end
&gt; &gt; &gt; 
&gt; &gt; &gt; Is this how we deal with private headers on the Mac?  Why even include the private header if we&apos;re going to make this category?
&gt; &gt; 
&gt; &gt; I think we usually do the category as an #else clause.
&gt; 
&gt; Oh, and reason we do it is to catch errors for people who have the header.

Exactly.

If we put it in an #else, we wouldn&apos;t (as readily) catch signature changes. I think the only case we use a #else is if we need to magic the class itself into existence (when the class itself is also private).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971213</commentid>
    <comment_count>6</comment_count>
      <attachid>221961</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-01-23 10:10:26 -0800</bug_when>
    <thetext>Comment on attachment 221961
patch

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

&gt; Source/WebKit2/UIProcess/API/ios/WKContentView.mm:46
&gt; +#if defined(__has_include) &amp;&amp; __has_include(&lt;QuartzCore/QuartzCorePrivate.h&gt;)

Do we really need the #if defined(__has_include) part here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971228</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-01-23 10:40:02 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 221961 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=221961&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/ios/WKContentView.mm:46
&gt; &gt; +#if defined(__has_include) &amp;&amp; __has_include(&lt;QuartzCore/QuartzCorePrivate.h&gt;)
&gt; 
&gt; Do we really need the #if defined(__has_include) part here?

I don’t think we do anymore (or maybe ever?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971231</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-01-23 10:47:49 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/162626</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>221961</attachid>
            <date>2014-01-23 01:19:25 -0800</date>
            <delta_ts>2014-01-23 10:10:26 -0800</delta_ts>
            <desc>patch</desc>
            <filename>blackbackground.diff</filename>
            <type>text/plain</type>
            <size>2223</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA3Y2QwODg1Li41NDhhNzI0IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYg
QEAKKzIwMTQtMDEtMjMgIFRpbSBIb3J0b24gIDx0aW1vdGh5X2hvcnRvbkBhcHBsZS5jb20+CisK
KyAgICAgICAgW2lPU10gW1dLMl0gV0tDb250ZW50VmlldyBoYXMgYSBibGFjayBiYWNrZ3JvdW5k
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjc0NzEK
KyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzEyMjg3MzYzPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogVUlQcm9jZXNzL0FQSS9pb3MvV0tDb250ZW50
Vmlldy5tbToKKyAgICAgICAgKC1bV0tDb250ZW50VmlldyBfY29tbW9uSW5pdGlhbGl6YXRpb25X
aXRoQ29udGV4dFJlZjpwYWdlR3JvdXBSZWY6cmVsYXRlZFRvUGFnZTpdKToKKyAgICAgICAgSW5z
dGVhZCBvZiBnaXZpbmcgaX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C0gKHZvaWQpX3dpbmRvd0Rp
ZE1vdmVUb1NjcmVlbk5vdGlmaWNhdGlvbjooTlNOb3RpZmljYXRpb24gKilub3RpZmljYXRpb24K
</data>
<flag name="review"
          id="245941"
          type_id="1"
          status="+"
          setter="sam"
    />
          </attachment>
      

    </bug>

</bugzilla>