It works! I did notice the difference between getWindow() and getWindowInsecure but wrappedJSObject was not listed as a property of the defaultView in Firebug.
Thanks for your help once again. On Sep 27, 1:09 pm, satyr <[email protected]> wrote: > Notice that I used getWindowInsecure() instead of getWindow() in the > last example. So in this case: > > > Utils.tabs.get("ToDoSo")[0].document.defaultView.wrappedJSObject.postMessage("bar", > "*"); > > should work. > > 2009/9/26 Louis-Rémi Babé <[email protected]>: > > > > > Well, > > > what you've indicated actually works, but when I try > > Utils.tabs.get("ToDoSo")[0].window.postMessage("bar", "*") > > It returns "postMessage is not a function" > > and > > Utils.tabs.get("ToDoSo")[0].document.defaultView.window.postMessage > > ("foo", "*") > > has no effect --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
