Re: [whatwg] Question about certain cases for popstate event

2011-06-17 Thread Mihai Parparita
On Wed, Jun 15, 2011 at 8:42 PM, Ian Hickson i...@hixie.ch wrote:
 Google Chrome 10 seems to fire popstate even if I open totally new page.
 Firefox 4 seems to fire event only on going back/forward

 How are you determining if Firefox fires the event? Are you sure you're
 not just checking after Firefox has fired it?

Firefox does this intentionally
(http://hacks.mozilla.org/2011/03/history-api-changes-in-firefox-4/),
and Chrome will be changing to follow suit (http://crbug.com/63040).
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12707 is open about
this, I'm not sure if there's been any spec changes.

Mihai


Re: [whatwg] Question about certain cases for popstate event

2011-06-17 Thread Ian Hickson
On Fri, 17 Jun 2011, Mihai Parparita wrote:
 On Wed, Jun 15, 2011 at 8:42 PM, Ian Hickson i...@hixie.ch wrote:
  Google Chrome 10 seems to fire popstate even if I open totally new 
  page. Firefox 4 seems to fire event only on going back/forward
 
  How are you determining if Firefox fires the event? Are you sure 
  you're not just checking after Firefox has fired it?
 
 Firefox does this intentionally 
 (http://hacks.mozilla.org/2011/03/history-api-changes-in-firefox-4/), 
 and Chrome will be changing to follow suit (http://crbug.com/63040). 
 http://www.w3.org/Bugs/Public/show_bug.cgi?id=12707 is open about this, 
 I'm not sure if there's been any spec changes.

The spec has been updated to match the above, which is why I ask how the 
OP was testing Firefox. The event still fires, it just probably fires 
before any event handlers have been registered.

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


Re: [whatwg] Question about certain cases for popstate event

2011-06-17 Thread Jonas Sicking
2011/6/17 Ian Hickson i...@hixie.ch:
 On Fri, 17 Jun 2011, Mihai Parparita wrote:
 On Wed, Jun 15, 2011 at 8:42 PM, Ian Hickson i...@hixie.ch wrote:
  Google Chrome 10 seems to fire popstate even if I open totally new
  page. Firefox 4 seems to fire event only on going back/forward
 
  How are you determining if Firefox fires the event? Are you sure
  you're not just checking after Firefox has fired it?

 Firefox does this intentionally
 (http://hacks.mozilla.org/2011/03/history-api-changes-in-firefox-4/),
 and Chrome will be changing to follow suit (http://crbug.com/63040).
 http://www.w3.org/Bugs/Public/show_bug.cgi?id=12707 is open about this,
 I'm not sure if there's been any spec changes.

 The spec has been updated to match the above, which is why I ask how the
 OP was testing Firefox. The event still fires, it just probably fires
 before any event handlers have been registered.

Have you really fixed bug 12707? Note that this is not the initial bug
filed on making the spec follow the mozilla proposed changes. If bug
12707 really has been fixed, it would be great if you could mention
this in the bug and close it.

[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=12707

/ Jonas


Re: [whatwg] Question about certain cases for popstate event

2011-06-17 Thread Ian Hickson
On Fri, 17 Jun 2011, Jonas Sicking wrote:
 2011/6/17 Ian Hickson i...@hixie.ch:
  On Fri, 17 Jun 2011, Mihai Parparita wrote:
  On Wed, Jun 15, 2011 at 8:42 PM, Ian Hickson i...@hixie.ch wrote:
   Google Chrome 10 seems to fire popstate even if I open totally new
   page. Firefox 4 seems to fire event only on going back/forward
  
   How are you determining if Firefox fires the event? Are you sure
   you're not just checking after Firefox has fired it?
 
  Firefox does this intentionally
  (http://hacks.mozilla.org/2011/03/history-api-changes-in-firefox-4/),
  and Chrome will be changing to follow suit (http://crbug.com/63040).
  http://www.w3.org/Bugs/Public/show_bug.cgi?id=12707 is open about this,
  I'm not sure if there's been any spec changes.
 
  The spec has been updated to match the above, which is why I ask how the
  OP was testing Firefox. The event still fires, it just probably fires
  before any event handlers have been registered.
 
 Have you really fixed bug 12707? Note that this is not the initial bug
 filed on making the spec follow the mozilla proposed changes. If bug
 12707 really has been fixed, it would be great if you could mention
 this in the bug and close it.
 
 [1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=12707

Ah, no, hadn't seen that one. Will fix that in due course also.

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


Re: [whatwg] Question about certain cases for popstate event

2011-06-15 Thread Ian Hickson
On Tue, 5 Apr 2011, Rafa�~B Mi�~Becki wrote:
 
 There is part of the spec that do not see too obvious for me. Could you 
 help me with that?
 
 6.5.9.1 says:
  The popstate event is fired in certain cases when navigating to a 
  session history entry.

 Where can I find definition of that certain cases?

If you click on popstate you'll be taken to the definition of 
popstate; if you click on it again you'll be presented with a list of 
all the references. Or, you can just search for popstate. Either way 
you'll find that the only place that fires it is here:

http://www.whatwg.org/specs/web-apps/current-work/complete/history.html#history-traversal

The next question of course is when is that algorithm invoked. If you 
click on its definition (the bold text at the top of that section) then 
you'll get a list of the places where it's mentioned. The exact answer is 
rather subtle and I'm reluctant to try to summarise it.


 Google Chrome 10 seems to fire popstate even if I open totally new page.
 Firefox 4 seems to fire event only on going back/forward

How are you determining if Firefox fires the event? Are you sure you're 
not just checking after Firefox has fired it?

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Re: [whatwg] Question about certain cases for popstate event

2011-04-14 Thread Rafał Miłecki
W dniu 5 kwietnia 2011 13:03 użytkownik Rafał Miłecki
zaj...@gmail.com napisał:
 Hello,

 There is part of the spec that do not see too obvious for me. Could
 you help me with that?

 6.5.9.1 says:
 The popstate event is fired in certain cases when navigating to a session 
 history entry.
 Where can I find definition of that certain cases?

 Google Chrome 10 seems to fire popstate even if I open totally new page.
 Firefox 4 seems to fire event only on going back/forward
 MDC says [1] event should be fired on *every* change of active history entry

 [1] https://developer.mozilla.org/en/DOM/window.onpopstate
 (A popstate event is dispatched to the window every time the active
 history entry changes.)

 Which version is correct then?

Ping? :|

-- 
Rafał