<?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>137037</bug_id>
          
          <creation_ts>2014-09-23 12:35:23 -0700</creation_ts>
          <short_desc>Adopt Page Visibility 2 optimizations as defined in W3C spec</short_desc>
          <delta_ts>2016-12-13 09:59: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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=159475</see_also>
          <bug_file_loc>https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility2/Overview.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeffrey Gilbert">jeffreytgilbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>cdumez</cc>
    
    <cc>dbates</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1036791</commentid>
    <comment_count>0</comment_count>
    <who name="Jeffrey Gilbert">jeffreytgilbert</who>
    <bug_when>2014-09-23 12:35:23 -0700</bug_when>
    <thetext>My recommendation is to extend the functionality of the current Page Visibility API to allow optimizing content not visible in the active area of the viewport. As defined in the Page Visibility 2 Editor&apos;s Draft, this would include iframes separate from the parent document, content hidden by CSS manipulation (display:none, opacity:0, visibility hidden, width/height:0), minimization of the window, backgrounding, screen savers, but could also include browser windows hidden from display, or obscured by other windows (ex: Apple&apos;s App Nap or botnets running browser shells of webkit/Trident/Chromium purposely hidden from view). Currently, this relates to how the browser is optimizing content, but this could be amended to simply broadcast if it were out of view, and capable of being passively ignored or actively utilized.

The spec: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility2/Overview.html

W3C Dialog started here:
http://lists.w3.org/Archives/Public/public-web-perf/2014Jan/0040.html

Dialog reopened here:
http://lists.w3.org/Archives/Public/public-web-perf/2014Sep/0052.html

Relevance:
http://blogs.keynote.com/the_watch/2014/02/filtering-out-web-performance-monitoring-traffic-from-google-analytics.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1036875</commentid>
    <comment_count>1</comment_count>
    <who name="Jeffrey Gilbert">jeffreytgilbert</who>
    <bug_when>2014-09-23 16:46:48 -0700</bug_when>
    <thetext>May also align with the following bug tickets:

Summary:	[GTK] Add support for the hidden page DOM timer throttling
https://bugs.webkit.org/show_bug.cgi?id=99059

Don&apos;t fire requestAnimationFrame for scripts in frames that are out of view
https://bugs.webkit.org/show_bug.cgi?id=100257</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1036915</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2014-09-23 22:17:11 -0700</bug_when>
    <thetext>Sounds great, we should do this.

&gt; minimization of the window, backgrounding, screen savers, but could also include browser windows hidden from display, or obscured by other windows

We should have these mostly covered already, on Mac at least (&amp; iOS, to the extent appropriate!).

&gt; include iframes separate from the parent document, content hidden by CSS manipulation (display:none, opacity:0, visibility hidden, width/height:0),

Don&apos;t believe we have any of this yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221114</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-08-18 10:43:58 -0700</bug_when>
    <thetext>&lt;rdar://problem/27908125&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259204</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-12-12 14:26:10 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Sounds great, we should do this.
&gt; 
&gt; &gt; minimization of the window, backgrounding, screen savers, but could also include browser windows hidden from display, or obscured by other windows
&gt; 
&gt; We should have these mostly covered already, on Mac at least (&amp; iOS, to the
&gt; extent appropriate!).
&gt; 
&gt; &gt; include iframes separate from the parent document, content hidden by CSS manipulation (display:none, opacity:0, visibility hidden, width/height:0),
&gt; 
&gt; Don&apos;t believe we have any of this yet.

Looks like this part was reverted in https://github.com/w3c/page-visibility/commit/21540308e91d9fad2d91c4b3121e1ce33a2532b2. The latest specification does not have any mention of this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259419</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-12-13 09:59:18 -0800</bug_when>
    <thetext>Closing this as the frame-level optimizations were reverted from the specification.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>