Bug or misuse of History with IE6 ?

6 views
Skip to first unread message

Yves

unread,
Feb 25, 2008, 11:55:32 AM2/25/08
to Google Web Toolkit
Hi everybody,

In a very trivial GWT client, I get a strange - reproduceable -
behavior of the History back/forward features.

In the client, there are 3 hyperlinks. Click on hyperlink 1 then 2
then 3, then go back and forward. The function onHistoryChanged() is
correctly called. Play with the back and forward buttons until the
following problem happens:
- the application is suddenlly reloaded (onModuleLoad() is called)
- onHistoryChanged() is no more called when using the back/forward
buttons.
- the history stack is corrupted : only one or two distinct hash
tokens are displayed in the URL bar when going back/forward.

Is this a bug, or anybody has an idea of what is wrong ?
Thanks for your help and comments.
Yves

Here is the code:

public class MyApp implements EntryPoint, HistoryListener {

private VerticalPanel vp = new VerticalPanel();

public void onModuleLoad() {

vp.add(new Hyperlink("zoom","zoom1"));
vp.add(new Hyperlink("zoom","zoom2"));
vp.add(new Hyperlink("zoom","zoom3"));
RootPanel.get("center").add(vp);

History.addHistoryListener(this);
}

public void onHistoryChanged(String historyToken) {
}
}

and the html:

<html>
<head>
<script language='javascript'
src='com.mycompany.MyApp.nocache.js'></script>
</head>

<body>
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:
0;height:0;border:0"></iframe>
<table align=center>
<tr>
<td id="center"></td>
</tr>
</table>
</body>
</html>

Peter Blazejewicz

unread,
Feb 26, 2008, 4:09:00 PM2/26/08
to Google Web Toolkit
hi,

run GWT KitchenSink in browser and see if you are able to repet issue,
if so please rise issue for that with detailed step-by-step
description on how to recreate,
http://code.google.com/webtoolkit/examples/kitchensink/

regards,
Peter

Yves

unread,
Feb 27, 2008, 4:01:19 AM2/27/08
to Google Web Toolkit
Hi Peter,
I'll try and let you know
Thank's
Yves

On Feb 26, 10:09 pm, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:
> hi,
>
> run GWT KitchenSink in browser and see if you are able to repet issue,
> if so please rise issue for that with detailed step-by-step
> description on how to recreate,http://code.google.com/webtoolkit/examples/kitchensink/
> > </html>- Hide quoted text -
>
> - Show quoted text -

Yves

unread,
Feb 27, 2008, 4:16:33 AM2/27/08
to Google Web Toolkit
Yes this is repeatable with the demo at http://gwt.google.com/samples/KitchenSink/KitchenSink.html
I didn't have to recompile the demo with some log to see the problem.

The steps:
- go to http://gwt.google.com/samples/KitchenSink/KitchenSink.html
- click on the tab Widgets
- click on the tab Panels
- click on the tab Lists
- push on the back button
- then play with the back/forward button until the module is reloaded
and History stack is corrupted

The evidence of the reloading is that the browser flashes and redraws
the content. Then some steps are lost in the history stack (visible
while playing again with the back/forward buttons)

I am using Windows XP and IE6 SP2 (version 6.0.2900.2180)

If you need more info to reproduce it, or more details, let me know

HTH
Yves
> > - Show quoted text -- Hide quoted text -

Peter Blazejewicz

unread,
Mar 5, 2008, 9:21:48 PM3/5/08
to Google Web Toolkit
hi Yves,

related topic:
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/97a74385c586a940/202d926efba1dcf1?lnk=gst&q=history#202d926efba1dcf1

I've been experiencing similair issue to your one during few last days
when working on something which heavily use history as internal
naviagtion solution,

regards,
Peter

On Feb 27, 10:16 am, Yves <smy...@gmail.com> wrote:
> Yes this is repeatable with the demo athttp://gwt.google.com/samples/KitchenSink/KitchenSink.html
> I didn't have to recompile the demo with some log to see the problem.
>
> The steps:
> - go tohttp://gwt.google.com/samples/KitchenSink/KitchenSink.html
> - click on the tab Widgets
> - click on the tab Panels
> - click on the tab Lists
> - push on the back button
> - then play with the back/forward button until the module is reloaded
> andHistorystack is corrupted
>
> The evidence of the reloading is that the browser flashes and redraws
> the content. Then some steps are lost in thehistorystack (visible
> while playing again with the back/forward buttons)
>
> I am using Windows XP and IE6 SP2 (version 6.0.2900.2180)
>
> If you need more info to reproduce it, or more details, let me know
>
> HTH
> Yves
>
> On Feb 27, 10:01 am, Yves <smy...@gmail.com> wrote:
>
> > Hi Peter,
> > I'll try and let you know
> > Thank's
> > Yves
>
> > On Feb 26, 10:09 pm, Peter Blazejewicz <peter.blazejew...@gmail.com>
> > wrote:
>
> > > hi,
>
> > > run GWT KitchenSink in browser and see if you are able to repet issue,
> > > if so please rise issue for that with detailed step-by-step
> > > description on how to recreate,http://code.google.com/webtoolkit/examples/kitchensink/
>
> > > regards,
> > > Peter
>
> > > On Feb 25, 5:55 pm, Yves <smy...@gmail.com> wrote:
>
> > > > Hi everybody,
>
> > > > In a very trivial GWT client, I get a strange - reproduceable -
> > > > behavior of theHistoryback/forward features.
>
> > > > In the client, there are 3 hyperlinks. Click on hyperlink 1 then 2
> > > > then 3, then go back and forward. The function onHistoryChanged() is
> > > > correctly called. Play with the back and forward buttons until the
> > > > following problem happens:
> > > > - the application is suddenlly reloaded (onModuleLoad() is called)
> > > > - onHistoryChanged() is no more called when using the back/forward
> > > > buttons.
> > > > - thehistorystack is corrupted : only one or two distinct hash

Sumit Chandel

unread,
Mar 10, 2008, 7:23:54 PM3/10/08
to Google-We...@googlegroups.com
Hi Yves,

Thanks for reporting this. I just tried this out on Firefox 2.0 and IE7 and couldn't reproduce the problem. I clicked through the tabs and then played around with the Back / Forward buttons randomly for about a minute with no history failure. Which browser were you using where this happens?

To Peter's point, it could well be that this issue is related, but from the looks of it they're separate problems since visiting the application for the first time with no history token and subsequently clicking a widget that is listening for history guarantees (or at least should guarantee) that the history token exists. Let's continue drilling down on this problem in case it's symptomatic of a different root cause.

Cheers,
-Sumit Chandel

Yves

unread,
Mar 24, 2008, 6:48:38 AM3/24/08
to Google Web Toolkit
Hi Sumit,

Sorry for my late answer.
I posted a comment in
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/97a74385c586a940/202d926efba1dcf1

I tried a solution that seems to work for me, but I wonder for side
effects ?

Thx
Yves

On Mar 11, 12:23 am, "Sumit Chandel" <sumitchan...@google.com> wrote:
> Hi Yves,
>
> Thanks for reporting this. I just tried this out on Firefox 2.0 and IE7 and
> couldn't reproduce the problem. I clicked through the tabs and then played
> around with the Back / Forward buttons randomly for about a minute with no
> history failure. Which browser were you using where this happens?
>
> To Peter's point, it could well be that this issue is related, but from the
> looks of it they're separate problems since visiting the application for the
> first time with no history token and subsequently clicking a widget that is
> listening for history guarantees (or at least should guarantee) that the
> history token exists. Let's continue drilling down on this problem in case
> it's symptomatic of a different root cause.
>
> Cheers,
> -Sumit Chandel
>
> On Wed, Mar 5, 2008 at 7:21 PM, Peter Blazejewicz <
>
>
>
> peter.blazejew...@gmail.com> wrote:
>
> > hi Yves,
>
> > related topic:
>
> >http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse...

pablisco

unread,
Apr 2, 2008, 9:00:32 PM4/2/08
to Google Web Toolkit
I think I found the solution for this problem. I have posted it here:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2152

I hope it helps.

On Feb 25, 5:55 pm, Yves <smy...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages