<?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>67848</bug_id>
          
          <creation_ts>2011-09-09 07:50:41 -0700</creation_ts>
          <short_desc>[chromium] Workaround for String/HashSet/StringHash #include order glitch</short_desc>
          <delta_ts>2011-09-14 09:28:25 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Iain Merrick">husky</reporter>
          <assigned_to name="Iain Merrick">husky</assigned_to>
          <cc>husky</cc>
    
    <cc>jamesr</cc>
    
    <cc>kbr</cc>
    
    <cc>nduca</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>464793</commentid>
    <comment_count>0</comment_count>
    <who name="Iain Merrick">husky</who>
    <bug_when>2011-09-09 07:50:41 -0700</bug_when>
    <thetext>[chromium] Workaround for String/HashSet/StringHash #include order glitch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464794</commentid>
    <comment_count>1</comment_count>
      <attachid>106869</attachid>
    <who name="Iain Merrick">husky</who>
    <bug_when>2011-09-09 07:55:42 -0700</bug_when>
    <thetext>Created attachment 106869
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464797</commentid>
    <comment_count>2</comment_count>
    <who name="Iain Merrick">husky</who>
    <bug_when>2011-09-09 07:56:55 -0700</bug_when>
    <thetext>Kind of a long explanation for a one-line change, but it&apos;s bit of a head-scratcher.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464800</commentid>
    <comment_count>3</comment_count>
    <who name="Nat Duca">nduca</who>
    <bug_when>2011-09-09 08:13:05 -0700</bug_when>
    <thetext>+kbr who knows this file pretty well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464810</commentid>
    <comment_count>4</comment_count>
    <who name="Iain Merrick">husky</who>
    <bug_when>2011-09-09 08:39:42 -0700</bug_when>
    <thetext>Simple version: nobody actually includes StringHash.h! So this doesn&apos;t compile:

#include &lt;wtf/HashSet.h&gt;
#include &lt;wtf/text/WTFString.h&gt;

class ScoobyDoo {
  HashSet&lt;String&gt; scrappy;
};

#include &lt;wtf/text/StringHash.h&gt;

I think this *does* mean we were using the wrong hash traits.

The only core header that includes StringHash.h is WTFThreadData.h, which is why it showed up when I had thread-related code and GraphicsContext3D in the same .cpp file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465036</commentid>
    <comment_count>5</comment_count>
      <attachid>106869</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-09-09 14:48:27 -0700</bug_when>
    <thetext>Comment on attachment 106869
Patch

This seems awfully suspicious because there are some files (like Extensions3DChromium.cpp) which compile just fine and include only their header, GraphicsContext3D.h and GraphicsContext3DPrivate.h -- and GraphicsContext3DPrivate.h already includes GraphicsContext3D.h. Could you please continue to investigate the underlying problem rather than committing this workaround, which isn&apos;t necessary for the sources currently in the tree?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465038</commentid>
    <comment_count>6</comment_count>
      <attachid>106869</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-09-09 14:50:16 -0700</bug_when>
    <thetext>Comment on attachment 106869
Patch

If there&apos;s a problem with the string headers, fix the string headers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465563</commentid>
    <comment_count>7</comment_count>
    <who name="Iain Merrick">husky</who>
    <bug_when>2011-09-12 04:15:54 -0700</bug_when>
    <thetext>Here&apos;s the fix for the string headers: https://bugs.webkit.org/show_bug.cgi?id=67851</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465706</commentid>
    <comment_count>8</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-09-12 11:51:22 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Here&apos;s the fix for the string headers: https://bugs.webkit.org/show_bug.cgi?id=67851

Thanks. After looking at the comments on that other bug it seems that there was a deliberate decision to avoid including the hash traits from all files which include WTFString.h. Given that, I think this fix to GraphicsContext3DPrivate.h is the right thing to do. I&apos;ll r+ this and you can close the other one as WontFix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>467070</commentid>
    <comment_count>9</comment_count>
    <who name="Iain Merrick">husky</who>
    <bug_when>2011-09-14 09:28:25 -0700</bug_when>
    <thetext>Obsoleted by https://bugs.webkit.org/show_bug.cgi?id=67851</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>106869</attachid>
            <date>2011-09-09 07:55:42 -0700</date>
            <delta_ts>2011-09-12 11:51:29 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-67848-20110909155541.patch</filename>
            <type>text/plain</type>
            <size>1721</size>
            <attacher name="Iain Merrick">husky</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNv
dXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCShyZXZpc2lvbiA5NDg1MykKKysrIFNvdXJj
ZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCSh3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XRlLmggdGhhdCB3b3JrcyBh
cm91bmQgdGhlIHByb2JsZW0uCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku
CisKKyAgICAgICAgKiBzcmMvR3JhcGhpY3NDb250ZXh0M0RQcml2YXRlLmg6CisKIDIwMTEtMDkt
MDkgIE1hcnRpbiBLb3NpYmEgIDxta29zaWJhQGNocm9taXVtLm9yZz4KIAogICAgICAgICBFeHBv
c2luZyB0aGUgaXNMaW5rIG1ldGhvZCBvbiBXZWJOb2RlIGZvciB0aGUgQ2hyb21pdW0gcG9ydCBv
biBBbmRyb2lkLgpJbmRleDogU291cmNlL1dlYktpdC9jaHJvbWl1bS9zcmMvR3JhcGhpY3NDb250
ZXh0M0RQcml2YXRlLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYktpdC9jaHJvbWl1bS9zcmMv
R3JhcGhpY3NDb250ZXh0M0RQcml2YXRlLmgJKHJldmlzaW9uIDk0ODUxKQorKysgU291cmNlL1dl
YktpdC9jaHJvbWl1bS9zcmMvR3JhcGhpY3NDb250ZXh0M0RQcml2YXRlLmgJKHdvcmtpbmcgY29w
eSkKQEAgLTMxLDYgKzMxLDcgQEAKICNpbmNsdWRlIDx3dGYvSGFzaFNldC5oPgogI2luY2x1ZGUg
PHd0Zi9Pd25BcnJheVB0ci5oPgogI2luY2x1ZGUgPHd0Zi9Pd25QdHIuaD4KKyNpbmNsdWRlIDx3
dGYvdGV4dC9TdHJpbmdIYXNoLmg+CiAjaWYgVVNFKFNLSUEpCiAjaW5jbHVkZSAiU2tCaXRtYXAu
aCIKICNlbmRpZgo=
</data>
<flag name="review"
          id="103403"
          type_id="1"
          status="+"
          setter="kbr"
    />
          </attachment>
      

    </bug>

</bugzilla>