From: Marc G. <mgu...@ya...> - 2005-08-19 09:35:51
|
Oh, sorry, I've only seen that you're setting location.href and I've not checked that the setter for href is already implemented. The bug issue I quoted only concern the other properties of Location. Which version of htmlunit do you use? I think that the problem is already fixed in CVS. Marc. Anzinger, Stefan wrote: > >>-----Original Message----- >>From: htm...@li... On Behalf >>Of Marc Guillemot >> >>I think that it is related to following issue: "Properties on >>Location object defined as read only" >>http://sourceforge.net/tracker/index.php?func=detail&aid=12384 >>29&group_id=47038&atid=448266 >> >>You patch with the appropriate unit tests fixing the problem >>is welcome. > > > > No the problem you quoted is an other. > The target pages, where HTMLUnit navigate to, > are wrong, when the target Page contains an iframe or > something like that. > > The content of the first javascript-request (Page B) is > overwritten by loading the iframe Content (Page C). > The Problem is, when the javascript is executed a new window > in the property "WebClient.firstWindowStack_" is created and > the result page is loaded - if there Is any loaded in the > javascript - into the top window on this stack. > > When we call the javascript event handler, a new empty > window is created (in the method > HtmlElement.executeJavaScriptIfPossible()), > the event fills the window with the content of Page B and > the iframe of Page B fills the content with Page C. > > The Patches will follow .. > > Greets > Stefan Anzinger > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |