<?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>98848</bug_id>
          
          <creation_ts>2012-10-09 21:14:01 -0700</creation_ts>
          <short_desc>robohornet gets very slow if the page is backgrounded</short_desc>
          <delta_ts>2017-07-18 08:29:28 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kiran Muppala">cmuppala</reporter>
          <assigned_to name="Kiran Muppala">cmuppala</assigned_to>
          <cc>ap</cc>
    
    <cc>fishd</cc>
    
    <cc>jamesr</cc>
    
    <cc>kbr</cc>
    
    <cc>mjs</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>738491</commentid>
    <comment_count>0</comment_count>
    <who name="Kiran Muppala">cmuppala</who>
    <bug_when>2012-10-09 21:14:01 -0700</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=98474 introduced throttling of DOM timers on hidden pages by aligning them to 1 second intervals.   Kenneth Russell, commented in that bug that a known issue with timer throttling in chromium is robohornet benchmark (www.robohornet.org) slowing down if put on a background tab, even if it has popup windows which are in the foreground.  http://code.google.com/p/chromium/issues/detail?id=152077.

Testing on mac, showed that hidden page timer alignment also exhibits the same behavior.  Filing this bug to figure out how to address this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>738580</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2012-10-09 22:59:07 -0700</bug_when>
    <thetext>Is this actually a bug? I&apos;d expect benchmarks that rely on timers to run slower when in a background tab, with any form of background tab timer throttling.

We could add a special case to avoid throttling background (or otherwise non-visible) pages with visible popups, but is there a reason that is actually important?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>738644</commentid>
    <comment_count>2</comment_count>
    <who name="Kiran Muppala">cmuppala</who>
    <bug_when>2012-10-09 23:55:25 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Is this actually a bug? I&apos;d expect benchmarks that rely on timers to run slower when in a background tab, with any form of background tab timer throttling.
&gt; 
&gt; We could add a special case to avoid throttling background (or otherwise non-visible) pages with visible popups, but is there a reason that is actually important?

No, I didn&apos;t think this is important.  In fact I wasn&apos;t even sure if this needed to be fixed.  I just filed the bug to not loose track of it.  Lowered the priority of the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>739118</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2012-10-10 10:54:55 -0700</bug_when>
    <thetext>I suspect that the authors of the robohornet benchmark consider this more than a minor issue. CC&apos;ing a couple.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>739216</commentid>
    <comment_count>4</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-10-10 12:34:53 -0700</bug_when>
    <thetext>I think we should just change robohornet to listen to visibilitychange events and return an error to the user if the page is ever hidden.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>