<?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>23279</bug_id>
          
          <creation_ts>2013-09-18 21:40:46 +0000</creation_ts>
          <short_desc>Unclear whether pageshow should fire when .pushState is called</short_desc>
          <delta_ts>2013-09-25 02:00:40 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#event-pageshow</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>ian</cc>
    
    <cc>jmjacobs</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93538</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-09-18 21:40:46 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#event-pageshow
Complete: http://www.whatwg.org/c#event-pageshow
Referrer: 

Comment:
It’s not explicitly stated here whether pageshow should fire when, for
example, .pushState is called. I would assume so from the phrase “traversing
to a session history entry” but I’m not confident of my interpretation and
Firefox 23.0.1 (which has implemented the pageshow event) does not.

Posted from: 50.0.151.136
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93679</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-23 20:12:30 +0000</bug_when>
    <thetext>Step 4.6.4 of &quot;traverse the history&quot; seems pretty unambiguous about when the event should be fired. Can you elaborate on why this is unclear? Is the reference to &quot;traversing to a session history entry&quot; maybe not obviously an invocation of a spec algorithm? Is the algorithm unclear?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93694</commentid>
    <comment_count>2</comment_count>
    <who name="Jared Jacobs">jmjacobs</who>
    <bug_when>2013-09-23 22:34:37 +0000</bug_when>
    <thetext>It would have helped me if the word &quot;traversing&quot; perhaps linked to the algorithm at the beginning of the section, but that&apos;s probably because I wasn&apos;t reading straight through the document. I started from the pageshow event definition.

Just now I also read the .pushState section (#dom-history-pushstate) which has a note down at step 6 that reads:

  &quot;Since this is neither a navigation of the browsing context
  nor a history traversal, it does not cause a hashchange event
  to be fired.&quot;

This note was helpful for me. It seems to imply that .pushState should not trigger a pageshow event to be fired either, since only history traversals can do that.

Feel free to close/reject this issue. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93756</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-24 22:30:33 +0000</bug_when>
    <thetext>Aha, yes, a hyperlink from the event definition would make sense! I&apos;ve added one.

You should also read this blog post;
   http://ln.hixie.ch/?start=1140242962&amp;count=1

In particular, the part about &quot;statements of fact&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93757</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-09-24 22:31:34 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8198.
Check-in comment: Add a hyperlink to make this clearer.
http://html5.org/tools/web-apps-tracker?from=8197&amp;to=8198</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93774</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-25 02:00:40 +0000</bug_when>
    <thetext>Please reopen if there&apos;s anything further you think could be added to clarify this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>