Using the dom of mozilla with javaxpcom and the w3c connector

"Can Candan" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <cafa42420609160057y795ec6cm35a42c61cd4a63f4__8766.62021405554$1158393447$gmane$org@mail.gmail.com>
Hi all,

Can someone show me how to embed mozilla, so that I can load a page and
access its dom using the W3C Connector, in the simplest possible way?


I have tried the following using eclipse ATF classes

Display display = new Display();
Shell shell = new Shell(display);
shell.open ();
org.eclipse.swt.browser.MozillaBrowser mb = new MozillaBrowser(shell,
SWT.NONE);
mb.setUrl(" http://www.google.com");

setUrl requests the page, I sniffed network activity the page is being
transmitted.
But when I set a breakpoint at that location thereby giving it time to
complete loading and then execute

mb.getUrl();

I get about:blank instead of the google url.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.