From: David D. K. <ddk...@ki...> - 2005-06-16 04:56:03
|
I would look at com.gargoylesoftware.htmlunit.javascript.host.Window.jsGet_top(). Actually, I would look at where TopLevelWindow gets created. It seems that not all of its properties on the SimpleScriptable object that it contains are being set properly during construction (or shortly thereafter). IntelliJ IDEA says the WebClient and Window classes are the two production (non-test) classes where it's being used. (NOTE: My copy of HtmlUnit from CVS is a bit out-dated, though. Please double-check this for yourself.) Dave On Jun 15, 2005, at 6:08 PM, Casey Crabb wrote: > The problem still occurs with CVS as of 5pm CDT today. > > I've attached the stacktrace. > > Line 875 of that javascript file is; > if (window.top.location.href.indexOf('more.jsp')<0) { > > The location attribute of the Window returned by top is undefined. > > Any ideas of where I should look in HTMLUnit (other than generating > the unified diff between 1.5 and 1.6)? > > -- > Casey > > On Wed, Jun 15, 2005 at 03:01:47PM -0700, Brad Clarke wrote: > >> Could be a lot of things. A stack would help narrow it down. >> >> Could you pull the latest CVS and see if it's still broken before >> spending too much time isolating it? There has been a change since >> 1.6 to how things are scoped that might have something to do with it. >> >> Brad C >> |