<?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>81729</bug_id>
          
          <creation_ts>2012-03-20 20:19:36 -0700</creation_ts>
          <short_desc>REGRESSION: On Mac, run-webkit-tests changes the display color profile even when not running pixel tests</short_desc>
          <delta_ts>2013-09-06 09:41:06 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</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>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Maciej Stachowiak">mjs</assigned_to>
          <cc>ap</cc>
    
    <cc>dpranke</cc>
    
    <cc>mjs</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>zhenghao</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>583731</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2012-03-20 20:19:36 -0700</bug_when>
    <thetext>run-webkit-tests changes the main display’s color profile when it’s run even if the --pixel option is not specified, so pixel tests aren’t run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>583733</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-03-20 20:21:26 -0700</bug_when>
    <thetext>This behavior matches Chromium, I believe (since I just stole their code), but we should fix it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612462</commentid>
    <comment_count>2</comment_count>
      <attachid>139408</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2012-04-29 18:19:25 -0700</bug_when>
    <thetext>Created attachment 139408
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612463</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2012-04-29 18:21:14 -0700</bug_when>
    <thetext>Committed r115601: &lt;http://trac.webkit.org/changeset/115601&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612464</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-04-29 18:21:33 -0700</bug_when>
    <thetext>I wonder if we should leave a note in the LayoutTestHelper code, in case anyone goes to add anything not-pixel-test-specific there. Or should rename LayoutTestHelper to PixelTestHelper or something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612489</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-04-29 20:20:12 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I wonder if we should leave a note in the LayoutTestHelper code, in case anyone goes to add anything not-pixel-test-specific there. Or should rename LayoutTestHelper to PixelTestHelper or something.

Woah, you said the same thing on webkit-dev. Nevermind!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612554</commentid>
    <comment_count>6</comment_count>
      <attachid>139408</attachid>
    <who name="Rafael Brandao">rafael.lobo</who>
    <bug_when>2012-04-30 05:09:27 -0700</bug_when>
    <thetext>Comment on attachment 139408
Patch

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

&gt; Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:851
&gt; +            self._port.start_helper()

Wouldn&apos;t be a good idea to have this call named as &quot;start_pixel_test_helper&quot; instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612834</commentid>
    <comment_count>7</comment_count>
      <attachid>139408</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-30 12:01:26 -0700</bug_when>
    <thetext>Comment on attachment 139408
Patch

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

&gt;&gt; Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:851
&gt;&gt; +            self._port.start_helper()
&gt; 
&gt; Wouldn&apos;t be a good idea to have this call named as &quot;start_pixel_test_helper&quot; instead?

No. The intent of this method is to provide a hook for a port to do *whatever* customization is needed prior to a test run, not just pixel-test specific things.

In fact, this change would break the android port if it tried to run w/o -p, for example.

The correct thing to do would&apos;ve been to change mac.py&apos;s implementation to be a no-op if options.pixel_test was false.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615269</commentid>
    <comment_count>8</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2012-05-03 07:39:48 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 139408 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=139408&amp;action=review
&gt; 
&gt; &gt;&gt; Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:851
&gt; &gt;&gt; +            self._port.start_helper()
&gt; &gt; 
&gt; &gt; Wouldn&apos;t be a good idea to have this call named as &quot;start_pixel_test_helper&quot; instead?
&gt; 
&gt; No. The intent of this method is to provide a hook for a port to do *whatever* customization is needed prior to a test run, not just pixel-test specific things.
&gt; 
&gt; In fact, this change would break the android port if it tried to run w/o -p, for example.
&gt; 
&gt; The correct thing to do would&apos;ve been to change mac.py&apos;s implementation to be a no-op if options.pixel_test was false.

Maybe there should be separate hooks. The Chromium Android port that needs non-pixel-test setup isn&apos;t in webkit svn (so how could anyone know it exists, let alone when it needs to run?) while the three ports using this in open source (mac, chromium-mac, chromium-win) all need it only for pixel tests. Seems error prone to put the pixel test conditionality in each separate port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615312</commentid>
    <comment_count>9</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-05-03 08:56:47 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (From update of attachment 139408 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=139408&amp;action=review
&gt; &gt; 
&gt; &gt; &gt;&gt; Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:851
&gt; &gt; &gt;&gt; +            self._port.start_helper()
&gt; &gt; &gt; 
&gt; &gt; &gt; Wouldn&apos;t be a good idea to have this call named as &quot;start_pixel_test_helper&quot; instead?
&gt; &gt; 
&gt; &gt; No. The intent of this method is to provide a hook for a port to do *whatever* customization is needed prior to a test run, not just pixel-test specific things.
&gt; &gt; 
&gt; &gt; In fact, this change would break the android port if it tried to run w/o -p, for example.
&gt; &gt; 
&gt; &gt; The correct thing to do would&apos;ve been to change mac.py&apos;s implementation to be a no-op if options.pixel_test was false.
&gt; 
&gt; Maybe there should be separate hooks. The Chromium Android port that needs non-pixel-test setup isn&apos;t in webkit svn (so how could anyone know it exists, let alone when it needs to run?) 

The python code for it is:

http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py

&gt; Seems error prone to put the pixel test conditionality in each separate port.

Perhaps. However, as stated above, the contract for the function was not pixel-test specific, so one had no choice given the current API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621382</commentid>
    <comment_count>10</comment_count>
    <who name="Hao Zheng">zhenghao</who>
    <bug_when>2012-05-11 01:32:52 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 139408 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=139408&amp;action=review
&gt; 
&gt; &gt;&gt; Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:851
&gt; &gt;&gt; +            self._port.start_helper()
&gt; &gt; 
&gt; &gt; Wouldn&apos;t be a good idea to have this call named as &quot;start_pixel_test_helper&quot; instead?
&gt; 
&gt; No. The intent of this method is to provide a hook for a port to do *whatever* customization is needed prior to a test run, not just pixel-test specific things.
&gt; 
&gt; In fact, this change would break the android port if it tried to run w/o -p, for example.
&gt; 
&gt; The correct thing to do would&apos;ve been to change mac.py&apos;s implementation to be a no-op if options.pixel_test was false.

+1

Even if you want to make this change, you&apos;d better change the name of the method to start_pixel_helper and change start_helper to setup_test_run in chromium_android. That would be a more sound change. This change actually breaks chromium android, although we don&apos;t run layout test publicly now as much stuff has not been upstreamed yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925631</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-09-06 09:41:06 -0700</bug_when>
    <thetext>In addition to the above comments, this patch breaks reftests, as they are also dependent on color profile (they shouldn&apos;t be, but they are). I&apos;m proposing to undo this change in bug 120755.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139408</attachid>
            <date>2012-04-29 18:19:25 -0700</date>
            <delta_ts>2012-04-30 12:01:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-81729-20120429181925.patch</filename>
            <type>text/plain</type>
            <size>1643</size>
            <attacher name="Maciej Stachowiak">mjs</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDExNTYwMCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDEyLTA0LTI5ICBNYWNpZWogU3RhY2hvd2lhayAgPG1qc0BhcHBsZS5jb20+
CisKKyAgICAgICAgUkVHUkVTU0lPTjogT24gTGlvbiwgcnVuLXdlYmtpdC10ZXN0cyBjaGFuZ2Vz
IHRoZ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AgICAgICAiIiIKICAgICAgICAgIyBUaGlz
IG11c3QgYmUgc3RhcnRlZCBiZWZvcmUgd2UgY2hlY2sgdGhlIHN5c3RlbSBkZXBlbmRlbmNpZXMs
CiAgICAgICAgICMgc2luY2UgdGhlIGhlbHBlciBtYXkgZG8gdGhpbmdzIHRvIG1ha2UgdGhlIHNl
dHVwIGNvcnJlY3QuCi0gICAgICAgIHNlbGYuX3ByaW50ZXIucHJpbnRfdXBkYXRlKCJTdGFydGlu
ZyBoZWxwZXIgLi4uIikKLSAgICAgICAgc2VsZi5fcG9ydC5zdGFydF9oZWxwZXIoKQorICAgICAg
ICBpZiBzZWxmLl9vcHRpb25zLnBpeGVsX3Rlc3RzOgorICAgICAgICAgICAgc2VsZi5fcHJpbnRl
ci5wcmludF91cGRhdGUoIlN0YXJ0aW5nIHBpeGVsIHRlc3QgaGVscGVyIC4uLiIpCisgICAgICAg
ICAgICBzZWxmLl9wb3J0LnN0YXJ0X2hlbHBlcigpCiAKICAgICAgICAgIyBDaGVjayB0aGF0IHRo
ZSBzeXN0ZW0gZGVwZW5kZW5jaWVzICh0aGVtZXMsIGZvbnRzLCAuLi4pIGFyZSBjb3JyZWN0Lgog
ICAgICAgICBpZiBub3Qgc2VsZi5fb3B0aW9ucy5ub2NoZWNrX3N5c19kZXBzOgo=
</data>
<flag name="review"
          id="145020"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>