<?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>119210</bug_id>
          
          <creation_ts>2013-07-29 02:38:26 -0700</creation_ts>
          <short_desc>[WIN] Add implementation for WebCore::readFromFile()</short_desc>
          <delta_ts>2013-09-25 12:50:57 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</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="Patrick R. Gansterer">paroga</reporter>
          <assigned_to name="Patrick R. Gansterer">paroga</assigned_to>
          <cc>bfulgham</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>912412</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2013-07-29 02:38:26 -0700</bug_when>
    <thetext>[WIN] Add implementation for WebCore::readFromFile()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912414</commentid>
    <comment_count>1</comment_count>
      <attachid>207627</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2013-07-29 02:42:43 -0700</bug_when>
    <thetext>Created attachment 207627
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912890</commentid>
    <comment_count>2</comment_count>
      <attachid>207627</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-07-30 09:37:08 -0700</bug_when>
    <thetext>Comment on attachment 207627
Patch

readFromFile is not currently used on the Windows build.  Is there a corresponding change that causes this code to be needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912891</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2013-07-30 09:38:57 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 207627 [details])
&gt; readFromFile is not currently used on the Windows build.  Is there a corresponding change that causes this code to be needed?

Not yet, but I like to port some code, which will use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912914</commentid>
    <comment_count>4</comment_count>
      <attachid>207627</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-07-30 10:16:25 -0700</bug_when>
    <thetext>Comment on attachment 207627
Patch

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

r=me.  Please consider adding the global namespace prefix to the ReadFile method call.

&gt; Source/WebCore/platform/win/FileSystemWin.cpp:393
&gt; +    bool success = ReadFile(handle, data, length, &amp;bytesRead, 0);

We prefer to say &quot;::ReadFile&quot; for these global WinAPI calls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>932347</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2013-09-23 16:25:38 -0700</bug_when>
    <thetext>Committed r156306: &lt;http://trac.webkit.org/changeset/156306&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>207627</attachid>
            <date>2013-07-29 02:42:43 -0700</date>
            <delta_ts>2013-09-25 12:50:57 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-119210.patch</filename>
            <type>text/plain</type>
            <size>1371</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0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Db3JlL3BsYXRmb3JtL3dpbi9GaWxlU3lzdGVtV2luLmNwcApAQCAtMzg0LDYg
KzM4NCwxOSBAQCBpbnQgd3JpdGVUb0ZpbGUoUGxhdGZvcm1GaWxlSGFuZGxlIGhhbmRsZSwgY29u
c3QgY2hhciogZGF0YSwgaW50IGxlbmd0aCkKICAgICByZXR1cm4gc3RhdGljX2Nhc3Q8aW50Pihi
eXRlc1dyaXR0ZW4pOwogfQogCitpbnQgcmVhZEZyb21GaWxlKFBsYXRmb3JtRmlsZUhhbmRsZSBo
YW5kbGUsIGNoYXIqIGRhdGEsIGludCBsZW5ndGgpCit7CisgICAgaWYgKCFpc0hhbmRsZVZhbGlk
KGhhbmRsZSkpCisgICAgICAgIHJldHVybiAtMTsKKworICAgIERXT1JEIGJ5dGVzUmVhZDsKKyAg
ICBib29sIHN1Y2Nlc3MgPSBSZWFkRmlsZShoYW5kbGUsIGRhdGEsIGxlbmd0aCwgJmJ5dGVzUmVh
ZCwgMCk7CisKKyAgICBpZiAoIXN1Y2Nlc3MpCisgICAgICAgIHJldHVybiAtMTsKKyAgICByZXR1
cm4gc3RhdGljX2Nhc3Q8aW50PihieXRlc1JlYWQpOworfQorCiBib29sIHVubG9hZE1vZHVsZShQ
bGF0Zm9ybU1vZHVsZSBtb2R1bGUpCiB7CiAgICAgcmV0dXJuIDo6RnJlZUxpYnJhcnkobW9kdWxl
KTsK
</data>
<flag name="review"
          id="229419"
          type_id="1"
          status="+"
          setter="bfulgham"
    />
          </attachment>
      

    </bug>

</bugzilla>