Wednesday, September 22, 2010

History.back() bug in Firefox

Has anyone experienced a problem with History.back() misbehaving in
Firefox after a FormPanel.submit()? I'm showing a pop-up dialog with
several options, among the uploading a file. If the dialog is closed
any other way, History.back() works. But if the user submits the form--
and the FormPanel.SubmitCompleteHandler hide()s the dialog--
History.back() does nothing.

Is Firefox somehow getting confused by the servlet call?

I'm using Firefox 3.6.10 with GWT 2.0.4.

History.back() behaves properly in Safari 5 and IE7 in the same
circumstances.

Fortunately, though there are 3 ways to get to the problem screen, all
go through the same method. So I capture the History token at the
start of that method and, in case of Firefox, call
History.netItem(lastToken) vs History.back(). But it sure is annoying!

--
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