Hi, Benjamin Smedberg:
I am porting an activeX control for IE onto mozilla plugin. With IE, it
is very simple to get the interface IWebBrowser2 at run time without
requiring javascript coding. Afterwards, I can use the interface
IWebBrowser2 to get URL address. At the end, my ActiveX control can restrict
domains for the sake of security. I want to do similar work with mozilla
browsers (firefox and netscape at least) from XPCOM/C++. It seems to me that
it is impossible to do such a work with mozilla browsers because of mozilla
limitations in integration.
I am looking foward to someone suggestions or hints how to solve such a
problem.
Regards,
Yuancai (Charlie) Ye
"Benjamin Smedberg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> yekerui wrote:
>> Hi, Benjamin:
>> Thanks a lot for your response!
>> All I want is to query URL on a mozilla browser without creating a
>> new URL. However, I can not find a way to query URL after looking through
>> all of interface definitions in the directory ..\gecko_sdk\idl\. Could
>> you give me a hint how to get an URL address like http://www.firefox.com
>> displayed on browser. I did google search, but I can get any clues about
>> getting URL from XPCOM/C++.
>> Again, thanks a lot for your help.
>
> What kind of browser? What object(s) do you have a reference to? XPCOM
> doesn't really have any concept of a browser, you have to have a reference
> to the browser object that you want to query, and then you ask it what
> location is loaded.
>
> --BDS
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom