|
From: Marc G. <mgu...@ya...> - 2006-05-25 20:18:07
|
Hi Ben,
I agree that it should be set-able.
I don't think that it should be limited to TopLevelWindow. Why shouldn't
it be allowed for a (i)frame window?
Can you provide a patch (with appropriate unit test of course ;-))?
Marc.
Ben...@no... wrote:
> Hello. I'm not sure if this is a bug or an enhancement, but I noticed
> that window.opener (in 1.8) is only get-able.
>
> I think the method should be this:
>
> package com.gargoylesoftware.htmlunit.javascript.host.Window
>
> public void jsxSet_opener(final Window pOpener) {
> if( webWindow_ instanceof TopLevelWindow ) {
>
> ((TopLevelWindow)webWindow_).setOpener(pOpener.getWebWindow());
> }
> }
> }
>
> (The JavaScriptConfiguration.xml file also needs the opener's writeable
> set to true).
>
> I don't fully have my head around Html windowing heirarchies, so this
> might just be an ugly hack that works for me.
>
> - Ben
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=k&kid7521&bid$8729&dat1642
> _______________________________________________
> Htmlunit-user mailing list
> Htm...@li...
> https://lists.sourceforge.net/lists/listinfo/htmlunit-user
>
>
|