<?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>189894</bug_id>
          
          <creation_ts>2018-09-23 09:22:44 -0700</creation_ts>
          <short_desc>Add missing includes in TextCodecReplacement.cpp</short_desc>
          <delta_ts>2018-09-23 13:53:22 -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>Tools / Tests</component>
          <version>WebKit 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>
          
          <blocked>188043</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Frédéric Wang Nélar">fred.wang</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>lforschler</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1462526</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2018-09-23 09:22:44 -0700</bug_when>
    <thetext>Patch from bug 188043 exhibits a possible build error when with unifiedbuild source rotating:

In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource357.cpp:1:
./platform/text/TextCodecReplacement.cpp:49:30: error: implicit instantiation of undefined template &apos;WTF::Function&lt;std::__1::unique_ptr&lt;WebCore::TextCodec, std::__1::default_delete&lt;WebCore::TextCodec&gt; &gt; ()&gt;&apos;
    registrar(&quot;replacement&quot;, [] {
                             ^
In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource357.cpp:1:
In file included from ./platform/text/TextCodecReplacement.cpp:27:
In file included from ./platform/text/TextCodecReplacement.h:28:
In file included from ./platform/text/TextCodecUTF8.h:28:
In file included from ./platform/text/TextCodec.h:33:
/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include/wtf/Forward.h:53:26: note: template is declared here
template&lt;typename&gt; class Function;
                         ^
In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource357.cpp:1:
./platform/text/TextCodecReplacement.cpp:49:30: note: candidate function
    registrar(&quot;replacement&quot;, [] {
                             ^
./platform/text/TextCodecReplacement.cpp:54:30: error: incomplete result type &apos;WTF::String&apos; in function definition
String TextCodecReplacement::decode(const char*, size_t, bool, bool, bool&amp; sawError)
                             ^
In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource357.cpp:1:
In file included from ./platform/text/TextCodecReplacement.cpp:27:
In file included from ./platform/text/TextCodecReplacement.h:28:
In file included from ./platform/text/TextCodecUTF8.h:28:
In file included from ./platform/text/TextCodec.h:33:
/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include/wtf/Forward.h:39:7: note: forward declaration of &apos;WTF::String&apos;
class String;
      ^
In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource357.cpp:1:
./platform/text/TextCodecReplacement.cpp:58:16: error: use of undeclared identifier &apos;emptyString&apos;
        return emptyString();
               ^
./platform/text/TextCodecReplacement.cpp:60:12: error: invalid use of incomplete type &apos;WTF::String&apos;
    return String { &amp;replacementCharacter, 1 };
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource357.cpp:1:
In file included from ./platform/text/TextCodecReplacement.cpp:27:
In file included from ./platform/text/TextCodecReplacement.h:28:
In file included from ./platform/text/TextCodecUTF8.h:28:
In file included from ./platform/text/TextCodec.h:33:
/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include/wtf/Forward.h:39:7: note: forward declaration of &apos;WTF::String&apos;
class String;
      ^
4 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462527</commentid>
    <comment_count>1</comment_count>
      <attachid>350570</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2018-09-23 09:27:53 -0700</bug_when>
    <thetext>Created attachment 350570
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462564</commentid>
    <comment_count>2</comment_count>
      <attachid>350570</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-09-23 13:52:33 -0700</bug_when>
    <thetext>Comment on attachment 350570
Patch

Clearing flags on attachment: 350570

Committed r236393: &lt;https://trac.webkit.org/changeset/236393&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462565</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-09-23 13:52:35 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462566</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-09-23 13:53:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/44715585&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>350570</attachid>
            <date>2018-09-23 09:27:53 -0700</date>
            <delta_ts>2018-09-23 13:52:33 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>189894.patch</filename>
            <type>text/plain</type>
            <size>1105</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBhOWU0M2Y5ZDFkNy4uYTgwMTQzZGUxOWMgMTAwNjQ0Ci0tLSBhL1NvdXJj
ZS9XZWJDb3JlL0NoYW5nZUxvZworKysgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxNCBAQAorMjAxOC0wOS0yMyAgRnJlZGVyaWMgV2FuZyAgPGZ3YW5nQGlnYWxpYS5jb20+
CisKKyAgICAgICAgQWRkIG1pc3NpbmcgaW5jbHVkZXMgaW4gVGV4dENvZGVjUmVwbGFjZW1lbnQu
Y3BwCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODk4
OTQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBu
ZXcgdGVzdHMsIGJlaGF2aW9yIHVuY2hhbmdlZC4KKworICAgICAgICAqIHBsYXRmb3JtL3RleHQv
VGV4dENvZGVjUmVwbGFjZW1lbnQuY3BwOiBBZGQgbWlzc2luZyBoZWFkZXJzLgorCiAyMDE4LTA5
LTIwICBKdXN0aW4gTWljaGF1ZCAgPGp1c3Rpbl9taWNoYXVkQGFwcGxlLmNvbT4KIAogICAgICAg
ICBJbXBsZW1lbnQgQ1NTIEN1c3RvbSBQcm9wZXJ0aWVzIGFuZCBWYWx1ZXMgU2tlbGV0b24KZGlm
ZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL3RleHQvVGV4dENvZGVjUmVwbGFjZW1l
bnQuY3BwIG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