<?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>100272</bug_id>
          
          <creation_ts>2012-10-24 11:25:09 -0700</creation_ts>
          <short_desc>Layout Test fast/media/w3c/test_media_queries.html is slow on Chromium debug bots after r132352</short_desc>
          <delta_ts>2012-10-25 02:15:47 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fmedia%2Fw3c%2Ftest_media_queries.html</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="Levi Weintraub">leviw</reporter>
          <assigned_to name="Alexander Shalamov">alexander.shalamov</assigned_to>
          <cc>alexander.shalamov</cc>
    
    <cc>kenneth</cc>
    
    <cc>kling</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>749855</commentid>
    <comment_count>0</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-10-24 11:25:09 -0700</bug_when>
    <thetext>It may just be slow. I&apos;m updating test expectations and watching to find out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749926</commentid>
    <comment_count>1</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-10-24 12:41:37 -0700</bug_when>
    <thetext>It looks like they really are just slow... First bot just passed at 12 seconds, the cutoff for Timeout when not marked slow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749980</commentid>
    <comment_count>2</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-10-24 13:29:49 -0700</bug_when>
    <thetext>Confirmed, they&apos;re all passing now, just slow (as much as 17 seconds!).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750050</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2012-10-24 14:33:54 -0700</bug_when>
    <thetext>Maybe interesting for the performance people/bots :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750475</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Shalamov">alexander.shalamov</who>
    <bug_when>2012-10-25 00:25:57 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Maybe interesting for the performance people/bots :-)

Yes, looks strange. I tested on quite slow machine, gtk and efl debug builds with RESOLUTION_MEDIA_QUERY disabled and test was executed within few seconds.

If slowness is a problem, we could relax W3C resolution tests and reduce number of queries that are trying to find dpi of the media.

  // Find the resolution using max-resolution
    var resolution = 0;
    do {
      ++resolution;
      if (resolution &gt; 10000) {
        break;
      }
    } while (!query_applies(&quot;(max-resolution: &quot; + resolution + &quot;dpi)&quot;));

I think we could change it to &quot;resolution &gt; 500&quot;.
Kenneth, what do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750491</commentid>
    <comment_count>5</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2012-10-25 00:37:24 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Maybe interesting for the performance people/bots :-)
&gt; 
&gt; Yes, looks strange. I tested on quite slow machine, gtk and efl debug builds with RESOLUTION_MEDIA_QUERY disabled and test was executed within few seconds.
&gt; 
&gt; If slowness is a problem, we could relax W3C resolution tests and reduce number of queries that are trying to find dpi of the media.
&gt; 
&gt;   // Find the resolution using max-resolution
&gt;     var resolution = 0;
&gt;     do {
&gt;       ++resolution;
&gt;       if (resolution &gt; 10000) {
&gt;         break;
&gt;       }
&gt;     } while (!query_applies(&quot;(max-resolution: &quot; + resolution + &quot;dpi)&quot;));
&gt; 
&gt; I think we could change it to &quot;resolution &gt; 500&quot;.
&gt; Kenneth, what do you think?

I am pretty sure it will bail out way before 500, anyway. Ah you are right, it won&apos;t if they have it disabled. We should run (resolution) first to check whether it is supported or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750544</commentid>
    <comment_count>6</comment_count>
      <attachid>170584</attachid>
    <who name="Alexander Shalamov">alexander.shalamov</who>
    <bug_when>2012-10-25 01:33:29 -0700</bug_when>
    <thetext>Created attachment 170584
Patch 1

- Added check for resolution media query tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750574</commentid>
    <comment_count>7</comment_count>
      <attachid>170584</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-10-25 02:15:43 -0700</bug_when>
    <thetext>Comment on attachment 170584
Patch 1

Clearing flags on attachment: 170584

Committed r132461: &lt;http://trac.webkit.org/changeset/132461&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750575</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-10-25 02:15:47 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>170584</attachid>
            <date>2012-10-25 01:33:29 -0700</date>
            <delta_ts>2012-10-25 02:15:42 -0700</delta_ts>
            <desc>Patch 1</desc>
            <filename>w3c_test_media_query_performance_1.patch</filename>
            <type>text/plain</type>
            <size>1796</size>
            <attacher name="Alexander Shalamov">alexander.shalamov</attacher>
            
              <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fd3JhcHBlcigxMDAwMCA8IHJlc29sdXRpb24pOworICAgICAgYXNzZXJ0X2Zh
bHNlX3dyYXBwZXIobWF4X3Jlc29sdXRpb24gPCByZXNvbHV0aW9uKTsKICAgICB9LCAiZmluZF9y
ZXNvbHV0aW9uIik7CiAKICAgICAvLyByZXNvbHV0aW9uIHNob3VsZCBub3cgYmUgTWF0aC5jZWls
KCkgb2YgdGhlIGFjdHVhbCByZXNvbHV0aW9uLgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>