<?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>20659</bug_id>
          
          <creation_ts>2013-01-14 05:57:04 +0000</creation_ts>
          <short_desc>A corresponding &quot;pushstate&quot; event would be very useful in some cases (e.g. read some of https://duckduckgo.com/?q=onpushstate ). My particular usecase is for userscripts for sites that use the HTML5 H [...]</short_desc>
          <delta_ts>2013-04-12 23:20:51 +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>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#history-traversal</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</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>mike</cc>
    
    <cc>w3bugs</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81318</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-14 05:57:04 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html
Multipage: http://www.whatwg.org/C#history-traversal
Complete: http://www.whatwg.org/c#history-traversal

Comment:
A corresponding &quot;pushstate&quot; event would be very useful in some cases (e.g.
read some of https://duckduckgo.com/?q=onpushstate ). My particular usecase is
for userscripts for sites that use the HTML5 History API, where some
non-invasive way of detecting &quot;a new logical page has loaded&quot;, so that DOM
changes can be applied, is necessary.

Posted from: 75.84.96.11
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81319</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2013-01-14 06:00:37 +0000</bug_when>
    <thetext>Argh. Correction to my comment: s/can be applied/should be reapplied/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84145</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-08 23:41:00 +0000</bug_when>
    <thetext>You know when you&apos;ve called pushstate, since you just called it...

I don&apos;t understand the use case here. Can you elaborate? Generally we don&apos;t provide events that fire when scripts do something, since it&apos;s not needed — if you for some reason don&apos;t control all the code that you&apos;re running, you can at least just override the things you want to hook and catch them that way (e.g. override pushState with your own method).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86108</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-12 23:20:51 +0000</bug_when>
    <thetext>Chris, please reopen this bug if you can provide the clarifications requested in comment 2, thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>