Re: Replacements for GtkMozEmbed
Benjamin Smedberg <[email protected]> Wed, 20 Apr 2011 13:24:56 -0400
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Message-ID | <[email protected]> |
On 4/20/2011 11:16 AM, Glen Gray wrote: > Hey guys, > > So, further to the discussions about dropping the embedding technologies, I'm interested in learning about what I can do to replace using GtkMozEmbed. > > Somebody mentioned creating a xulrunner application. I don't really know anything about that so I'm going to look into it. Answers to a couple of questions could help speed up my understanding though. > > Will a xulrunner application be able to integrate with actions that xulrunner takes like opening uri's etc. ? > We use uri's as service tags and some uri's are processed externally by our application stack. The GtkMozEmbed application will get a callback from Gecko for a uri open if someone clicks on a Video button for example, the has<a href="video:SomeVideoFile">Movie</a>. We'll route execution to a media application passing over the uri. Yes, you can implement a nsIProtocolHandler. Although really, you should be using an x-video URI scheme, if you really need to use a custom URI scheme. > If the above is possible then I'm happy. I'm wondering if the pyxpcom wrappers are still valid, we could replace our application with something like http://pyxpcomext.mozdev.org/no_wrap/tutorials/pyxulrunner/python_xulrunner_about.html > From the looks of that documentation, I could do all I need with xulrunner and Python. The Python bindings are not part of XULRunner by default, but I believe that they are still being maintained: you need to ask the PyXPCOM group about that: http://listserv.activestate.com/mailman/listinfo/pyxpcom --BDS