<?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>44483</bug_id>
          
          <creation_ts>2010-08-23 19:12:39 -0700</creation_ts>
          <short_desc>[chromium] fix the platform result fallback order on mac/win</short_desc>
          <delta_ts>2010-08-24 15:37:50 -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>Other</rep_platform>
          <op_sys>OS X 10.5</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="Tony Chang">tony</reporter>
          <assigned_to name="Tony Chang">tony</assigned_to>
          <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>victorw</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>268268</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-23 19:12:39 -0700</bug_when>
    <thetext>[chromium] fix the platform result fallback order on mac/win</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268269</commentid>
    <comment_count>1</comment_count>
      <attachid>65206</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-23 19:13:09 -0700</bug_when>
    <thetext>Created attachment 65206
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268271</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-23 19:14:13 -0700</bug_when>
    <thetext>The previous code happened to work on Linux because the fallback order on linux was hardcoded.  On Mac and Win, it&apos;s based on the port name.  To match existing behavior, we need to pass in null for port name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268273</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-23 19:16:39 -0700</bug_when>
    <thetext>To clarify some more, the bug was that --platform &apos;google-chrome-win&apos; wasn&apos;t including chromium-win-xp or chromium-win-vista.  This fixes it so the port name will still be chromium-win-{xp,vista}, even though we insert the google-chrome-win path in the baseline search path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268803</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-24 14:36:36 -0700</bug_when>
    <thetext>I&apos;m still confused why None is required here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268809</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-24 14:42:58 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I&apos;m still confused why None is required here.

None causes us to assign the default port name:
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_mac.py#L47
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_win.py#L44

For windows, this is important because that&apos;s where -xp or -vista comes from.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268816</commentid>
    <comment_count>6</comment_count>
      <attachid>65206</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-24 14:49:02 -0700</bug_when>
    <thetext>Comment on attachment 65206
Patch

So these ports end up maskerading as win or mac or whatever?  Or I guess they get the chromium through inheriting from the Chromium port?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268825</commentid>
    <comment_count>7</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-24 14:52:10 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 65206 [details])
&gt; So these ports end up maskerading as win or mac or whatever?  Or I guess they get the chromium through inheriting from the Chromium port?

Yes, these ports are identical to the chromium-win or chromium-mac ports.  We just want an extra layout test directory to check first for results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268844</commentid>
    <comment_count>8</comment_count>
      <attachid>65206</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-24 15:19:36 -0700</bug_when>
    <thetext>Comment on attachment 65206
Patch

I&apos;m still a bit confused, but I trust you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268853</commentid>
    <comment_count>9</comment_count>
      <attachid>65206</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2010-08-24 15:29:07 -0700</bug_when>
    <thetext>Comment on attachment 65206
Patch

Good catch. LGTM (although I&apos;m not a reviewer).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268863</commentid>
    <comment_count>10</comment_count>
      <attachid>65206</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-24 15:37:45 -0700</bug_when>
    <thetext>Comment on attachment 65206
Patch

Clearing flags on attachment: 65206

Committed r65944: &lt;http://trac.webkit.org/changeset/65944&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268864</commentid>
    <comment_count>11</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-08-24 15:37:50 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>65206</attachid>
            <date>2010-08-23 19:13:09 -0700</date>
            <delta_ts>2010-08-24 15:37:45 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-44483-20100823191322.patch</filename>
            <type>text/plain</type>
            <size>2978</size>
            <attacher name="Tony Chang">tony</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktp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BvcnRfbmFtZSwgb3B0aW9ucykKKyAgICAgICAgcmV0dXJuIEdvb2dsZUNocm9tZU1hY1BvcnQo
Tm9uZSwgb3B0aW9ucykKICAgICBlbGlmIHBvcnRfbmFtZS5zdGFydHN3aXRoKCdnb29nbGUtY2hy
b21lLXdpbicpOgogICAgICAgICBpbXBvcnQgY2hyb21pdW1fd2luCiAKQEAgLTcwLDUgKzcyLDUg
QEAgZGVmIEdldEdvb2dsZUNocm9tZVBvcnQocG9ydF9uYW1lLCBvcHRpb25zKToKICAgICAgICAg
ICAgICAgICBwYXRocy5pbnNlcnQoMCwgc2VsZi5fd2Via2l0X2Jhc2VsaW5lX3BhdGgoCiAgICAg
ICAgICAgICAgICAgICAgICdnb29nbGUtY2hyb21lLXdpbicpKQogICAgICAgICAgICAgICAgIHJl
dHVybiBwYXRocwotICAgICAgICByZXR1cm4gR29vZ2xlQ2hyb21lV2luUG9ydChwb3J0X25hbWUs
IG9wdGlvbnMpCisgICAgICAgIHJldHVybiBHb29nbGVDaHJvbWVXaW5Qb3J0KE5vbmUsIG9wdGlv
bnMpCiAgICAgcmFpc2UgTm90SW1wbGVtZW50ZWRFcnJvcigndW5zdXBwb3J0ZWQgcG9ydDogJXMn
ICUgcG9ydF9uYW1lKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>