On Thu, Nov 19, 2009 at 12:48 PM, testols ols <[email protected]> wrote:

> I have integrated xulrunner in my application and am able to load
> webpages to it. My main requirement is to invoke native application
> function through webpage. Through webpage i want to indicate
> application to close/terminate browser and if possible pass some
> message to it.
> I proceeded by implementing xpcom. I am able to invoke functions
> through xpcshell.exe but when i try to invoke from webbrowser a dialog
> box is poped up seeking permission from user. I want to bypass this
> dialog.
>
It's possible to make the component accessible to a web page (not through
Components.classes, but through other means). These results seem relevant,
although I haven't read it carefully
http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=djP&q=exposing+xpcom+component+to+a+web+page&aq=f&oq=&aqi=:
1) http://www.julienlecomte.net/blog/2007/07/7/  (using the "JavaScript
global property" category)
2) http://weblogs.mozillazine.org/weirdal/archives/017211.html

If you need a simple way to communicate between pages and chrome, DOM events
are a good choice -- simple to set up and doesn't even require an XPCOM
component:
https://developer.mozilla.org/En/Code_snippets/Interaction_between_privileged_and_non-privileged_pages

Nickolay
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to