Sorry for possibly double-posting this, I tried my first post via  gmane and it seems 
to have 
disappeared.

---


I am working a project that combines the Mozilla ActiveX control with
Python, pyxpcom, venster, twisted and possibly sqlite or embedded Firebird.

So far I am able to instantiate the MozActiveX control in a Window, and get
an IMozControlBridge Interface.

I can then call GetWebBrowser and get a pointer to an nsIWebBrowser.

1. is nsIWebBrowser a scriptable interface? I don't think it is. If it's not
scriptable, does this mean I can't use it from pyxpcom?

2. I've looked at GetWebBrowser  in the MozillaBrowser.cpp source and it looks like the
returned pointer is also a valid pointer to an nsWebBrowser interface. Is
that true?

And if so, is nsWebBrowser scriptable (and or ultimately usable from
pyxpcom)?

3. One thing I'd like to try is working on a XULConsole work alike, but one
that automatically refreshes when file system chrome changes. I have the
refresh down ok, but calling IHTMLWebBrowser2.Refresh or Refresh2(3) methods
don't cause the displayed chrome to refresh.

(This is not the ultimate goal of my project, just a side trip)

Example. I use nsIChromeRegistry to installPackage() to a File:// url. Then I
Navigate to chrome://mypackage/content

(I do this using pyxpcom to talk to the same xpcom registry as the activex
control)

That works. But if I change mypackage.xul, I cannot get the Mozilla Control
to refresh the display without quitting and restarting the application completely.

I've tried calling checkForNewChrome() and Refresh and other combinations,
but I just can't get the browser to refresh.

I suspect that gecko just won't reload chrome once it's been loaded. Is that
true?

I've looked at XULConsole and it seems to support Reload, but I don't think
it's using a chrome:// url, rather it's just loading the .xul file directly.

And I suppose if I just used Navigate() to go to file://mycontent.xul, I could
then use Refresh later. But if I load xul this way it's not trusted and I
can't use xpcom from javascript.. Right?

This leads to the next question.

4. I want to load XUL from either the local file system, or from a local
"http" server (or custom channel, like MozPython).

I might want this XUL to not be in the chrome registry, but still have
UniversalConnect rights.

Can I "activate" universalconnect on a per-browser-instance basis, perhaps
by calling a method on nsWebBrowser? That is, I don't want to just modify
the profile for the control because I don't know what other applications use
the control. So I'd like to say "this instance of the control should enable
UniversalConnect".

Or,  can I make a custom channel, something that works like http but one
that can be flagged to say "everything loaded on this channel is trusted".

ideas?

Thanks



-- 
Brad Clements,                [EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to