<?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>175414</bug_id>
          
          <creation_ts>2017-08-09 18:55:27 -0700</creation_ts>
          <short_desc>Resource Load Statistics: Increase grandfathering time to 7 days</short_desc>
          <delta_ts>2017-08-10 18:47:07 -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>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Wilander">wilander</reporter>
          <assigned_to name="John Wilander">wilander</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1337272</commentid>
    <comment_count>0</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2017-08-09 18:55:27 -0700</bug_when>
    <thetext>We should increase grandfathering time to 3 days to allow ample time to capture user interaction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337273</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-08-09 18:56:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/33818046&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337274</commentid>
    <comment_count>2</comment_count>
      <attachid>317773</attachid>
    <who name="John Wilander">wilander</who>
    <bug_when>2017-08-09 18:57:02 -0700</bug_when>
    <thetext>Created attachment 317773
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337287</commentid>
    <comment_count>3</comment_count>
      <attachid>317773</attachid>
    <who name="John Wilander">wilander</who>
    <bug_when>2017-08-09 19:51:39 -0700</bug_when>
    <thetext>Comment on attachment 317773
Patch

Thanks, Brent!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337294</commentid>
    <comment_count>4</comment_count>
      <attachid>317773</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-09 20:21:08 -0700</bug_when>
    <thetext>Comment on attachment 317773
Patch

Clearing flags on attachment: 317773

Committed r220505: &lt;http://trac.webkit.org/changeset/220505&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337295</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-09 20:21:09 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337484</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-08-10 10:36:42 -0700</bug_when>
    <thetext>Reopening because we think this should be three days of uptime, not three calendar days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337486</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-08-10 10:38:15 -0700</bug_when>
    <thetext>We should change the grandfathering code to operate based on uptime.

I think this just means modifying WebResourceLoadStatisticsStore::topPrivatelyControlledDomainsToRemoveWebsiteDataFor to use this as the test:

    bool shouldCheckForGrandfathering = m_operatingDates.size() &gt; 3;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337538</commentid>
    <comment_count>8</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-08-10 12:20:24 -0700</bug_when>
    <thetext>Never mind. Let&apos;s track other changes as a refinement. Re-closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337689</commentid>
    <comment_count>9</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2017-08-10 16:34:33 -0700</bug_when>
    <thetext>We&apos;re bumping this to seven days. Reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337693</commentid>
    <comment_count>10</comment_count>
      <attachid>317880</attachid>
    <who name="John Wilander">wilander</who>
    <bug_when>2017-08-10 16:39:43 -0700</bug_when>
    <thetext>Created attachment 317880
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337727</commentid>
    <comment_count>11</comment_count>
      <attachid>317880</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-08-10 17:08:27 -0700</bug_when>
    <thetext>Comment on attachment 317880
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337742</commentid>
    <comment_count>12</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2017-08-10 17:16:47 -0700</bug_when>
    <thetext>Please be aware that changes to the WebKit directory need approval from a WebKit owner.

To that end, how is this change being tested? Can an automated test be written?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337746</commentid>
    <comment_count>13</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-08-10 17:25:37 -0700</bug_when>
    <thetext>(In reply to Sam Weinig from comment #12)
&gt; To that end, how is this change being tested? Can an automated test be
&gt; written?

Existing tests cover this logic. Because of the lengths of time involved, they run with override timeouts that aren&apos;t affected by this change to a constant.

If you want to track detailed testing in Safari, please follow the associated Radar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337768</commentid>
    <comment_count>14</comment_count>
      <attachid>317880</attachid>
    <who name="John Wilander">wilander</who>
    <bug_when>2017-08-10 18:16:35 -0700</bug_when>
    <thetext>Comment on attachment 317880
Patch

Thanks, Brent!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337777</commentid>
    <comment_count>15</comment_count>
      <attachid>317880</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-10 18:47:06 -0700</bug_when>
    <thetext>Comment on attachment 317880
Patch

Clearing flags on attachment: 317880

Committed r220571: &lt;http://trac.webkit.org/changeset/220571&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337778</commentid>
    <comment_count>16</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-10 18:47:07 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>317773</attachid>
            <date>2017-08-09 18:57:02 -0700</date>
            <delta_ts>2017-08-10 16:39:42 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-175414-20170809185701.patch</filename>
            <type>text/plain</type>
            <size>1399</size>
            <attacher name="John Wilander">wilander</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyMjA1MDEpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDE3LTA4LTA5ICBKb2huIFdpbGFu
ZGVyICA8d2lsYW5kZXJAYXBwbGUuY29tPgorCisgICAgICAgIFJlc291cmNlIExvYWQgU3RhdGlz
dGljczogSW5jcmVhc2UgZ3JhbmRmYXRoZXJpbmcgdGltZSB0byAzIGRheXMKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5v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RzIGdyYW5kZmF0aGVyaW5n
VGltZSB7IDcyX2ggfTsKICAgICAgICAgYm9vbCBzaG91bGROb3RpZnlQYWdlc1doZW5EYXRhUmVj
b3Jkc1dlcmVTY2FubmVkIHsgZmFsc2UgfTsKICAgICAgICAgYm9vbCBzaG91bGRDbGFzc2lmeVJl
c291cmNlc0JlZm9yZURhdGFSZWNvcmRzUmVtb3ZhbCB7IHRydWUgfTsKICAgICAgICAgYm9vbCBz
aG91bGRTdWJtaXRUZWxlbWV0cnkgeyB0cnVlIH07Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>317880</attachid>
            <date>2017-08-10 16:39:43 -0700</date>
            <delta_ts>2017-08-10 18:47:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-175414-20170810163942.patch</filename>
            <type>text/plain</type>
            <size>1402</size>
            <attacher name="John Wilander">wilander</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyMjA1NjEpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDE3LTA4LTEwICBKb2huIFdpbGFu
ZGVyICA8d2lsYW5kZXJAYXBwbGUuY29tPgorCisgICAgICAgIFJlc291cmNlIExvYWQgU3RhdGlz
dGljczogSW5jcmVhc2UgZ3JhbmRmYXRoZXJpbmcgdGltZSB0byA3IGRheXMKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE3NTQxNAorICAgICAgICA8cmRh
cjovL3Byb2JsZW0vMzM4MTgwNDY+CisKKyAgICAgICAgUmV2a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