<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27817</bug_id>
          
          <creation_ts>2015-01-13 02:56:47 +0000</creation_ts>
          <short_desc>Value of lastModified probably shouldn&apos;t change during the lifetime of the document</short_desc>
          <delta_ts>2015-08-28 16:18:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#sandboxCookies</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>josh</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117057</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-01-13 02:56:47 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/
Multipage: https://html.spec.whatwg.org/multipage/#sandboxCookies
Complete: https://html.spec.whatwg.org/#sandboxCookies
Referrer: 

Comment:
Value of lastModified probably shouldn&apos;t change during the lifetime of the
document

Posted from: 98.110.194.132
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:37.0) Gecko/20100101 Firefox/37.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117058</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-01-13 02:57:24 +0000</bug_when>
    <thetext>In particular, the &quot;current time&quot; thing should be a snapshot taken at a well-defined point in document setup instead of having a lastModified that changes every time you access it.  In my opinion, of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117063</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-01-13 08:32:41 +0000</bug_when>
    <thetext>Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117071</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-01-13 13:20:22 +0000</bug_when>
    <thetext>Why which?  Why should it not change?

Conceptually, lastModified is when the HTML the browser is rendering was last modified.  This can obviously be sometime before the browser received the HTML, but, still conceptually, it can&apos;t be _after_ the browser has received it, because it&apos;s already received it.

So let me turn this around.  Why should this value possibly change during the document lifetime?  That&apos;s completely nonsensical behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117077</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-01-13 15:37:28 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #3)
&gt; Why which?  Why should it not change?

Right.

&gt; Conceptually, lastModified is when the HTML the browser is rendering was
&gt; last modified.  This can obviously be sometime before the browser received
&gt; the HTML, but, still conceptually, it can&apos;t be _after_ the browser has
&gt; received it, because it&apos;s already received it.
&gt; 
&gt; So let me turn this around.  Why should this value possibly change during
&gt; the document lifetime?  That&apos;s completely nonsensical behavior.

It&apos;s what the majority of implementations do (WebKit/Blink/IE11/Presto). So it&apos;s a shorter path to interop for Gecko to change to match everyone else.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3363</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117079</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-01-13 15:48:31 +0000</bug_when>
    <thetext>That&apos;s fair, but it seems to me that converging on nonsensical behavior is not a success story, even if it achieves interop.

If we can&apos;t achieve interop in any other way, then maybe it&apos;s worth it.  But it&apos;s very definitely a tradeoff, and I&apos;m not convinced we can&apos;t achieve interop in any other way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117113</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-01-13 23:10:58 +0000</bug_when>
    <thetext>lastModified is crazy town anyway. I would just pretend it wasn&apos;t there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117128</commentid>
    <comment_count>7</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-01-14 02:15:03 +0000</bug_when>
    <thetext>I would totally love to do that, but people are insisting on writing test suites that test its behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117144</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-01-14 09:29:16 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #5)
&gt; That&apos;s fair, but it seems to me that converging on nonsensical behavior is
&gt; not a success story, even if it achieves interop.

In this case I think both behaviors are basically not useful. The author wants the date when the document was actually last modified, not the current date and not the date when the document was loaded (nor the date when the server generated the page and put that in Last-Modified). So which we pick doesn&apos;t matter as far as usefulness of the API goes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117224</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-01-15 19:26:05 +0000</bug_when>
    <thetext>What do browsers do today, with respect to the issue in this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117225</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-01-15 19:27:22 +0000</bug_when>
    <thetext>Looking at the test in comment 4, it seems like the spec matches the majority of implementations already. I see no value in changing the spec here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117230</commentid>
    <comment_count>11</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-01-15 19:43:44 +0000</bug_when>
    <thetext>OK.  I&apos;m not going to waste more time on this; I guess we&apos;ll just update to the pointless behavior everyone else picked, yet again...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>