To close Ubiquity, use this loooong piece of code:
var mainWindow =
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
.rootTreeItem
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIDOMWindow);
mainWindow.gUbiquity.closeWindow();
Let me know if that works for you.
Cheers,
Abi
2009/2/4 lrbabe <[email protected]>
>
> Hello everybody,
>
> I'm searching for a way to tell Ubiquity to close itself inside a
> command.
> My command insert a list of link in the preview, and I would like
> that, when the user click an item of the list, ubiquity not only
> replace the current selection with the text from the link, but also
> close ubiquity itself.
> Is there any way of doing that?
> If not, where is the best place to ask for this feature? Should I fill
> a bug?
>
> Thanks in advance,
> Louis-Rémi Babé
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---