[webkit-help] Communicate using Microsoft COM

John Yani vanuan at gmail.com
Wed Aug 29 14:26:21 PDT 2012


This is going to be non-constructive.
If you choose Microsoft once you'll choose Microsoft forever. There is
no easy run-away path from it.
I'm afraid you'd have to use IE until you substantially rework your APIs/IPCs.
I don't know what and how components interact in your system (I see at
least 4: desktop application/browser/web-server/server application),
so I can't make any suggestions. Sorry

On 30 August 2012 00:06, Nuno Centeio <nuno.r.centeio at gmail.com> wrote:
> Do you have any other suggestion?
>
> This is going off-topic :(
>
> My application has an area that each client can personalize by indicating
> some URL. Most of our clients needs to perform actions on the application
> but they are made using an SDK on server-side. The server then communicates
> back with the application.
>
> This specific client can’t communicating using the SDK because our SDK is
> based on .NET Remoting and they are hosting the web server in Apache.
>
> For us it’s easier to say “you have to do like all other clients do: perform
> the actions using the SDK!” but we would loose the client and we are not in
> a position to loose clients.
>
>
> De: John Yani <vanuan at gmail.com>
> Enviada: ‎29‎ de ‎agosto‎ de ‎2012 ‎21‎:‎57
> Para: Nuno Centeio <nuno.r.centeio at gmail.com>
> Cc: webkit-help at lists.webkit.org
> Assunto: RE: [webkit-help] Communicate using Microsoft COM
>
>
> ActiveX is not supported by WebKit natively. However, you can try to install
> ActiveX for Chrome extension.
>
> Still, your solution seems ugly to me. But it's your choice.
>
> On Aug 29, 2012 11:40 PM, "Nuno Centeio" <nuno.r.centeio at gmail.com> wrote:
>>
>> Currently, a web page can include <object> using a classID which is a GUID
>> that he register. Using that I can start my application as a COM Local
>> Server and interact with it. This is working perfectly.
>>
>> The main problem is that only Internet Explorer, which I have to drop, can
>> handle that.
>>
>> I will look into WebSockets and/or REST API.
>>
>> Thanks for your help.
>>
>> De: Ivan Yani <vanuan at gmail.com>
>> Enviada: ‎29‎ de ‎agosto‎ de ‎2012 ‎19‎:‎32
>> Para: nuno.r.centeio at gmail.com
>> Cc: webkit-help at lists.webkit.org
>> Assunto: Re: [webkit-help] Communicate using Microsoft COM
>>
>> Oops, accidently dropped webkit-help from Cc.
>>
>> > - My application opens a intranet URL (I think Webkit can be used here).
>>
>> Does this webpage need to interact with user?
>>
>> > - My application needs to execute a Javascript script (Webkit should
>> > allow me to do that).
>>
>> If you only need JavaScript, you could try Node.js.
>>
>> > - The worst: the intranet page needs to execute and access things in my
>> > application.
>>
>> So, basically, you need IPC between JavaScript code and your desktop
>> application.
>> Security considerations doesn't allow you to do that.
>> The only possible way (without using NPAPI plugins) I can think about
>> is via WebSockets or some kind of REST API.
>>
>> >
>> > The final point is where I'm stuck :(
>> >
>> > -----Original Message-----
>> > From: Ivan Yani
>> > Sent:  29/08/2012 18:44:47
>> > Subject:  RE: [webkit-help] Communicate using Microsoft COM
>> >
>> > So you're talking about a specifically crafted web page? Yes you could
>> > develop an NPAPI plugin that would communicate via COM interface. But
>> > that's a very complicated approach.
>> >
>> > What do you you want to achive?
>> > On Aug 29, 2012 8:34 PM, "Nuno Centeio" <nuno.r.centeio at gmail.com>
>> > wrote:
>> >
>> >> Thanks for replying.****
>> >>
>> >> ** **
>> >>
>> >> I will use WebKit in my application. That’s decided.****
>> >>
>> >> However, I need that an HTML web pages (which can be opened using
>> >> Google
>> >> Chrome, for example) can communicate with my application. Currently,
>> >> web
>> >> pages can include an <object> tag that communicates with my application
>> >> via
>> >> (Microsoft) COM.****
>> >>
>> >> ** **
>> >>
>> >> Do you think that WebKit can help me in this subject?****
>> >>
>> >> ** **
>> >>
>> >> I’ve looked into XPCOM but it seems that I will have a lot of work
>> >> creating the XPCOM interface.****
>> >>
>> >> ** **
>> >>
>> >> Thanks****
>> >>
>> >> ** **
>> >>
>> >> ** **
>> >>
>> >> *From:* Ivan Yani [mailto:vanuan at gmail.com]
>> >> *Sent:* quarta-feira, 29 de Agosto de 2012 18:31
>> >> *To:* Nuno Centeio
>> >> *Subject:* Re: [webkit-help] Communicate using Microsoft COM****
>> >>
>> >> ** **
>> >>
>> >> If I understood correctly you want to use webkit in the .NET
>> >> application.
>> >> I'm afraid COM interfaces is not what you need. What you need is a .NET
>> >> wrapper for WebKit. Take a look at this one:
>> >> https://github.com/webkitdotnet/webkitdotnet****
>> >>
>> >> On Aug 29, 2012 7:25 PM, "Nuno Centeio" <nuno.r.centeio at gmail.com>
>> >> wrote:*
>> >> ***
>> >>
>> >> Hi.****
>> >>
>> >>  ****
>> >>
>> >> I have a WPF application that contains a WebBrowser object that is, in
>> >> fact, a wrapper for Internet Explorer.****
>> >>
>> >> I need to change that because of performance reasons while rendering
>> >> same
>> >> pages. I want to use WebKit. However, I have a problem.****
>> >>
>> >>  ****
>> >>
>> >> My application exposes a (MS)COM interface. This way, pages inside the
>> >> WebBrowser can communicate with my application. Most of the clients is
>> >> able
>> >> to simply use the <object> tag in the HTML.****
>> >>
>> >>  ****
>> >>
>> >> Is there any ways of enabling WebKit to communicate somehow with an
>> >> application? I can replace my COM interface.****
>> >>
>> >>  ****
>> >>
>> >> Thanks a lot.****
>> >>
>> >>  ****
>> >>
>> >>
>> >> _______________________________________________
>> >> webkit-help mailing list
>> >> webkit-help at lists.webkit.org
>> >> http://lists.webkit.org/mailman/listinfo/webkit-help****
>> >>
>> >


More information about the webkit-help mailing list