History works weird in Chrome and I can't debug it as I get lost in
hosted mode code but I can reproduce the error in web mode in Chrome
and not in FF. It works fine in FF.
Situation:
I have a display that shows a form in show and edit mode with
respectively history marker h1 and h2.
When going to view mode, I set a history marker manually through
History.newItem(marker, false) (note that argument false specifies to
not fire a History value change event). The history marker h1
correctly shows up in the url (and no History change event is fired).
When going to edit mode, I do the same, set the history marker
manually and it shows up as h2 in the url.
I then press the save or cancel button such that I go back to the show
mode. In code I do the same as above: set the History marker h1
manually.
Now something strange happens in Chrome (not FF): it shows h1 in the
url just a moment and then it fires (for some reason I don't
understand and can't debug) a History value change event (coming from
the HistoryImplSafari implementation class) with as history marker h2 :
(. It's like the back button is clicked, such that the application
shows the edit view again and the marker h2 shows up in the url (just
after showing h1 for a moment).
Apparently the history value change event is fired asynchronized (in
FF the event isn't fired).
Anybody any idea why this event is fired?
For me this is beginning to look like a bug.
I debuged every action, and all of a sudden this history change event
shows up for no reason... just like a back button is pressed.
I hope somebody can give me some hints what this might be.
I am about to implement a hack for the moment: a timer that will
ignore this value change event...
Note: FF works great and correctly shows the h1 and h2 markers as
expected (also when using the browser back and forward buttons).
- Ed
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment