Hi Matt,
Okay, $wnd and $doc won't work then. It's actually not important that
I have a reference to the window object itself, rather I'm writing a
harness for use by Selenium tests to do things that vanilla Se won't,
like manage file downloads. So ultimately I'll need to call my
extension's JS from the Se JS.
I see that the DotSpots extension is doing something very similar to
what I want using IDL, so I'm digging into that route (and learning
about IDL). You've got xul like:
<menuitem id="dotSpotsToolsPreferences" label="&dotSpots-
Preferences;"
oncommand="dotSpots.goPreferences(event);
event.stopPropagation();" />
I assume it's the IDL that's providing access to the dotSpots object
for oncommand? How is dotSpots exposed from within GWT?
I tried using window open events, but wasn't able to get it to work.
I was trying to hook into the Browser.contentWindow, is that what
you'd use?
Thanks,
Jason
On Oct 23, 8:37 am, Matt Mastracci <
matt...@dotspots.com> wrote:
> Hi Jason,
>
> The $wnd and $doc variables are just lightweight stubs in gwt-firefox-extension. They're used to stub out some dependencies that GWT has on a browser window.
>
> Since your Firefox extension runs as a headless component, it doesn't live within a window. There are two ways you can get a hold of a window.
>
> The first way (my preference) is listening for window open events like the Tabs class does. When the window opens, you can then hook it with your script functions:
>
>
http://code.google.com/p/gwt-firefox-extension/source/browse/trunk/sr...