Re: Disabling image load in JavaXPCom + Getting html document from xulrunner without popping up the widget
Michal Ceresna <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <200609012235.24226.michal.ceresna__14877.387826755$1157142899$gmane$org@gmail.com> |
On Friday 01 September 2006 21:07, George L wrote: Hello, > 1. The guide available from the JavaXPCom document and the other example > using swt browser are popping up the widget and give a visual presence. > Is there a way in which it could be avoided? the least complicated and best working solutions are: a) to run the linux application in virtual xserver (xvfb), or as windows service b) move the window off screen > 2. nsIwebBrowserSetup has the setting to enable or disable image loading. > How can it be used in the JavaXPCom setup? queryinterface nsIWebBrowser to nsIWebBrowserSetip and call the setProperty method > 3. While using SWT browser if i set browser visibility as false, i dont see > the pages getting loaded and i assume that the images dont get pulled in > this scenario. > Is that true? I am looking at reduced bandwidth and load time. Speaking in X11 terminology: you need to 'realize' the widget and not to 'show' it. But 1a) will solve this problem with less effort ;-) > 4. Any pointers on loading the extensions in the embedded browser? See http://www.mail-archive.com/[email protected]/msg00536.html > 5. I have a firefox extension with java connectivity. Can i load this > extension in the JavaXPCom embedded browser? I think not in general. AFAIK it will work on linux, but hang on win32. The reasons is due a bug in jdk initialization. But last time I tried that in age of jdk1.4, so maybe things have changed :-) In case you will try it now, please let us know the status. best regards, Michal