Hi all,
The SWT Browser's embedding of XULRunner uses
JS_EvaluateUCScriptForPrincipals() to evaluate arbitrary JS code in the
context of a loaded page. This invocation is preceded by a
nsIJSContextStack.Push() call to push the JSContext.
As of XULRunner 23 the nsIJSContextStack interface is
> lol actually they are using javaXPCOM and are stuck at Xul 1.9, which
> is why I'm here asking
The Browser control in the SWT 3.8/4.2 release can embed XULRunner 10.x
because it uses XPCOM directly, it does not use JavaXPCOM. The part
that does not work beyond XULRunner 1.9.2.x is its
Brows
Actually Eclipse uses XPCOM to embed xulrunner, and exposes JavaXPCOM to
clients. So the second part is of course dependent on JavaXPCOM's fate, but
the embedding part could continue on without JavaXPCOM.
Grant
"Benjamin Smedberg" wrote in message
news:mailman.1997.1302204651.16651.dev-embe
Hi Benjamin,
> As a project, we aren't going to spend effort trying to solve the problems
> associated with in-process embedding.
Can you clarify what this means? Is it just referring to the dropping of
gtkmozembed/javaxpcom/ActiveX control? Or is it saying that once mozilla
has entered the
The lines you want are:
nsIServiceManager serviceManager =
Mozilla.getInstance().getServiceManager();
nsIFaviconService service =
(nsIFaviconService)serviceManager.getServiceByContractID("@mozilla.org/brows
er/favicon-service;1", nsIFaviconService.NS_IFAVICONSERVICE_IID);
If you're asking which s
Hi,
This is logged as https://bugzilla.mozilla.org/show_bug.cgi?id=453523 .
It's not expected behaviour, because this same problem was fixed on gtk
prior to the 1.9 release, see
https://bugzilla.mozilla.org/show_bug.cgi?id=415789 .
Grant
"Dmitry Dartz" wrote in message
news:46idnz6fopqbe8lunz2
Hi,
To execute a javascript string in a displayed .html page our embedding app
uses nsIWebNavigation.LoadURI(...) to navigate to
"javascript://;void(0);". This works generally well,
but has problems with javascript strings that are read from a multi-line
source and therefore may contain content l
Hi Glen,
There was a problem until recently in SWT's Safari-based Browsers when
accessing gmail and google calendar because they look for certain user-agent
strings in the request header to decide what to enable. Embedding cases may
not have these strings if they are added by the browser (eg.- "F
ote in message
news:[EMAIL PROTECTED]
> On Apr 10, 7:50 pm, "Grant Gayed" <[EMAIL PROTECTED]> wrote:
> > I'm not sure about the approach you describe. The SWT Browser does this
by
> > calling NS_InitXPCOM2(...) at creation time, and providing a
> > ns
ant
"krithika" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Apr 4, 6:32 pm, "Grant Gayed" <[EMAIL PROTECTED]> wrote:
> > I think this happens when you either don't have a profile directory set,
or
> > you may have one set
I think this happens when you either don't have a profile directory set, or
you may have one set that does not exist or cannot be written to.
HTH,
Grant
"krithika" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have embedded Gecko1.8.1.4 in my java application.I have been using
Hi Bart,
To see popups like this in the swt Browser you need to add a couple of extra
listeners, as demonstrated in
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java?view=co
.
The Browser receives notifications for these by setting a Wi
Hi,
I see in xulrunner trunk builds that embedders can no longer have invalid
certificates handled for them by simply providing a window (in response to
an nsIWindowCreator2 request) for xulrunner to fill in. In the latest
Firefox 3.0b3 this error dialog has been replaced by an error page that
al
See the SWT.Selection listener below:
import org.eclipse.swt.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.browser.*;
import org.mozilla.interfaces.*;
public class Main {
public static void main(String [] args) {
Display display = new Display ();
Hi Jacek,
I think the following does what you want (written in terms of
java/javaxpcom):
String url = "javascript:" + script + ";void(0);";
nsIWebNavigation navigation =
(nsIWebNavigation)webBrowser.queryInterface(nsIWebNavigation.NS_IWEBNAVIGATI
ON_IID);
navigation.loadURI(url, nsIWebNavigation.
Hi,
I started with a large test page, but have been able to reduce it to the
following:
hi1hi2
When I navigate to this page with nsIWebNavigation.LoadURI(...) it works
fine. However when I try to set it as the browser's content directly using
its nsIWebBrowserStream, once the full "meta" tag ha
Thanks for the help Boris, it's working for me now.
Grant
"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Grant Gayed wrote:
> > - Is it expected that nsIURIContentListener.IsPreferred(...) gets called
> > when clicking on a link
Hi,
I implement and provide a nsIURIContentListener via
nsIWebBrowser.SetParentURIContentListener(...).
Works as expected, at least on the surface:
If I navigate directly to a url that is a pdf (I have the Acrobat reader
plug-in installed) then after calling my
nsIURIContentListener.OnStartURIOpe
ox browser to change the properties (that cookies should
> only be saved for a session and some other settings)
> But the embedded Browser that uses exactly this profile doesn't care
> about the settings. It also ignores every extension installed in this
> profile.
>
> Mar
rom the user profile directory?
>
> Is there a way to get a completely working firefox user profile?
>
> Regards
> Martin
>
> Grant Gayed schrieb:
> > (note that questions like this that are specific to the swt Browser are
best
> > asked on the eclipse.platform.swt
(note that questions like this that are specific to the swt Browser are best
asked on the eclipse.platform.swt newsgroup)
I'm not sure that I understand the question. Is the problem that the swt
browser is not seeing your Flash plug-in? If so, this is likely because the
plug-in is installed with
Hi,
If I'm using a GRE that does not have a Flash plug-in installed, navigating
to
http://64.233.179.104/translate_c?hl=en&u=http://www.sohu.com/&prev=/search%3Fq%3Dnews.sohu.com%26hl%3Den
shows the page, pops up an empty advertisement window (by invoking our
nsIWindowCreator2) that contains Flash
If you want to do this with swt's Browser:
- requires:
- xulrunner 1.8.1.2 (I see that you have this already)
- a very recent 3.3 stream swt (eg.-
http://download.eclipse.org/downloads/drops/I20070306-1200/index.php )
Example snippet:
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser
> i think the simpler question is: why do you have a 64bit version of
> xulrunner (or any other gecko) anywhere?
Anyone running on a recent 64-bit linux distro is likely to have one of
these that came with the OS. If GRE_GetGREPathWithProperties answers this
as a GRE that satisfies your version r
Hi,
I'm living in a setup where I always have the same home directory regardless
of which Linux machine I log onto (it's on a shared network). I don't know
how common this is.
This causes me a problem when my app invokes GRE_GetGREPathWithProperties
while I'm on a 64-bit Linux machine because th
25 matches
Mail list logo