Hello everybody,

I'm trying to pass data from a ubiquity command to a tab of my
browser. I thought I would be able to use the postMessage API but I'm
having different problems:
- It doesn't seem possible to get a reference on the window of a tab
out of focus. I can do Utils.tabs.get('myTab') but the object returned
is strange. I see a "get window" property in firebug but I cannot
access it (getWindow() or ["get window"]() fail)
- If I use Utils.focusUrlInBrowser to give the focus to this tab and
then CmdUtils.getWindow, postMessage doesn't seem to have any effect.
I have set an event listener on my window, when I test it from firebug
the event handler is triggered, but the postMessage in my command
doesn't trigger the event handler.

I'll try harder, I might have done something wrong, but have anybody
else already tried that? Is there a command using this mechanism out
there?

Regards,

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to