From: Anzinger, S. <SAn...@th...> - 2005-08-19 08:45:47
|
> -----Original Message----- > From: htm...@li... On Behalf=20 > Of Marc Guillemot > > I think that it is related to following issue: "Properties on=20 > Location object defined as read only"=20 > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D12384 > 29&group_id=3D47038&atid=3D448266 >=20 > You patch with the appropriate unit tests fixing the problem=20 > is welcome. No the problem you quoted is an other. The target pages, where HTMLUnit navigate to,=20 are wrong, when the target Page contains an iframe or=20 something like that. The content of the first javascript-request (Page B) is=20 overwritten by loading the iframe Content (Page C). The Problem is, when the javascript is executed a new window=20 in the property "WebClient.firstWindowStack_" is created and=20 the result page is loaded - if there Is any loaded in the=20 javascript - into the top window on this stack. When we call the javascript event handler, a new empty=20 window is created (in the method HtmlElement.executeJavaScriptIfPossible()),=20 the event fills the window with the content of Page B and=20 the iframe of Page B fills the content with Page C. The Patches will follow .. Greets Stefan Anzinger |