<?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>50028</bug_id>
          
          <creation_ts>2010-11-24 08:57:13 -0800</creation_ts>
          <short_desc>Simplify directoryName in FileSystemWin.cpp</short_desc>
          <delta_ts>2010-11-29 09:53:18 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>aroben</cc>
    
    <cc>buildbot</cc>
    
    <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>313320</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-11-24 08:57:13 -0800</bug_when>
    <thetext>see patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313323</commentid>
    <comment_count>1</comment_count>
      <attachid>74765</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-11-24 09:01:49 -0800</bug_when>
    <thetext>Created attachment 74765
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313341</commentid>
    <comment_count>2</comment_count>
    <who name="Build Bot">buildbot</who>
    <bug_when>2010-11-24 09:32:16 -0800</bug_when>
    <thetext>Attachment 74765 did not build on win:
Build output: http://queues.webkit.org/results/6296043</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313347</commentid>
    <comment_count>3</comment_count>
      <attachid>74772</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-11-24 09:38:36 -0800</bug_when>
    <thetext>Created attachment 74772
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314400</commentid>
    <comment_count>4</comment_count>
      <attachid>74772</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-11-29 07:34:12 -0800</bug_when>
    <thetext>Comment on attachment 74772
Patch

Seems like eventually we should switch to using ::PathRemoveFileSpecW.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314404</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-11-29 07:40:46 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 74772 [details])
&gt; Seems like eventually we should switch to using ::PathRemoveFileSpecW.
PathRemoveFileSpecW wants to work in a buffer. So we would need to copy the path first into the buffer and then out of if. I like the current version more, but I can change if you like the other one more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314407</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-11-29 07:47:22 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (From update of attachment 74772 [details] [details])
&gt; &gt; Seems like eventually we should switch to using ::PathRemoveFileSpecW.
&gt; PathRemoveFileSpecW wants to work in a buffer. So we would need to copy the path first into the buffer and then out of if. I like the current version more, but I can change if you like the other one more.

I think if we used StringBuffer or Vector&lt;UniChar&gt; we could get away with only a single copy, which is probably even better than the current implementation. But making this change I think would warrant a separate patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314408</commentid>
    <comment_count>7</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-11-29 07:50:05 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; (From update of attachment 74772 [details] [details] [details])
&gt; &gt; &gt; Seems like eventually we should switch to using ::PathRemoveFileSpecW.
&gt; &gt; PathRemoveFileSpecW wants to work in a buffer. So we would need to copy the path first into the buffer and then out of if. I like the current version more, but I can change if you like the other one more.
&gt; 
&gt; I think if we used StringBuffer or Vector&lt;UniChar&gt; we could get away with only a single copy, which is probably even better than the current implementation. But making this change I think would warrant a separate patch.
OK, I&apos;ll create a new patch in the next days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314418</commentid>
    <comment_count>8</comment_count>
      <attachid>74772</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-29 08:14:16 -0800</bug_when>
    <thetext>Comment on attachment 74772
Patch

Rejecting patch 74772 from commit-queue.

Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;--bot-id=eseidel-cq-sl&apos;, &apos;build&apos;, &apos;--no-clean&apos;, &apos;--no-update&apos;, &apos;--build-style=both&apos;]&quot; exit_code: 2
Last 500 characters of output:
g/RenderDataGrid.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2
	CompileC /Projects/CommitQueue/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/RenderLayer.o /Projects/CommitQueue/WebCore/rendering/RenderLayer.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2
	CompileC /Projects/CommitQueue/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/Frame.o /Projects/CommitQueue/WebCore/page/Frame.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2
(6 failures)


Full output: http://queues.webkit.org/results/6387099</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314469</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-29 09:36:02 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 74772:

fast/workers/storage/use-same-database-in-page-and-workers.html
inspector/timeline-event-dispatch.html

Please file bugs against the tests.  These tests were authored by beidson@apple.com, dumi@chromium.org, and yurys@chromium.org.  The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314475</commentid>
    <comment_count>10</comment_count>
      <attachid>74772</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-29 09:53:11 -0800</bug_when>
    <thetext>Comment on attachment 74772
Patch

Clearing flags on attachment: 74772

Committed r72808: &lt;http://trac.webkit.org/changeset/72808&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314476</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-29 09:53:18 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>74765</attachid>
            <date>2010-11-24 09:01:49 -0800</date>
            <delta_ts>2010-11-24 09:38:36 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-50028.patch</filename>
            <type>text/plain</type>
            <size>1132</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MzgxYmMzMS4uNTYyOTEwNyAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0xMS0yNCAgUGF0cmljayBHYW5z
dGVyZXIgIDxwYXJvZ2FAd2Via2l0Lm9yZz4KKworICA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lKHBhdGgpLmxlbmd0aCgpKTsKLSAgICByZXR1cm4gZGlyTmFt
ZTsKKyAgICByZXR1cm4gcGF0aC5sZWZ0KHBhdGgubGVndGgoKSAtIHBhdGhHZXRGaWxlTmFtZShw
YXRoKS5sZW5ndGgoKSk7CiB9CiAKIHN0YXRpYyBTdHJpbmcgYnVuZGxlTmFtZSgpCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>74772</attachid>
            <date>2010-11-24 09:38:36 -0800</date>
            <delta_ts>2010-11-29 09:53:11 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-50028.patch</filename>
            <type>text/plain</type>
            <size>1133</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MzgxYmMzMS4uNTYyOTEwNyAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0xMS0yNCAgUGF0cmljayBHYW5z
dGVyZXIgIDxwYXJvZ2FAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICBTaW1wbGlmeSBkaXJlY3RvcnlOYW1lIGluIEZpbGVTeXN0ZW1X
aW4uY3BwCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD01
MDAyOAorCisgICAgICAgICogcGxhdGZvcm0vd2luL0ZpbGVTeXN0ZW1XaW4uY3BwOgorICAgICAg
ICAoV2ViQ29yZTo6ZGlyZWN0b3J5TmFtZSk6CisKIDIwMTAtMTEtMjQgIFNoZXJpZmYgQm90ICA8
d2Via2l0LnJldmlldy5ib3RAZ21haWwuY29tP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