Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

LocationProvider, how to sepcify custom Chrome? "UChrm" or "ChromeML"

18 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Hai Jie Wu

ungelesen,
10.10.2007, 23:49:4710.10.07
an
Hi all,
I'm using Eclipse SWT Browser(V3.3) on Suse Linux 10, which uses
XULRunner version 1.8.0.1. I need to let JVM loaded Xulrunner runtime
find an additional Chrome position, e.g. i want to specify "/home/
tester/.mozilla/eclipse/chrome" as additional chrome directory. So
that the SWT.Browser can load chrome://... in the SWT Browser

SWT Browser has implemented LocationProvider and registered when
initialing XULRunner in JVM, when I tried with SWT.Browser in
debugging, I can see xulrunner
queries for "UChrm" in getFile() and "ChromeML" in getFiles().

In my testing,
A) Hack SWT java code to return "/home/tester/.mozilla/eclipse/chrome"
when getFile() asking for "UChrm".
Result: Nothing happens when I try to visit my Chrome URI.

B) Hacking SWT java code to return an array of Chrome locations when
getFiles() asking for "ChromeML"
"/usr/lib/xulrunner-1.8.0.1/chrome"
"/home/tester/.mozilla/eclipse/chrome"
Result: This time, I can successfully load registered Chrome URIs.

So my question is:
How can we make it work with "UChrm"? Does UChrm suppose to specify
an user Chrome directory?
Because Eclipse SWT.Browser automatically returns "/home/
tester/.mozilla/eclipse/chrome" when asking for "UChrm", bu if I use
"ChromeML", I must hack the SWT open source code.

Mark Finkle

ungelesen,
11.10.2007, 10:40:5111.10.07
an
"UChrm" doesn't appear to be used for general chrome files, only for
"userChrome.css" and "userContent.css" files.

"ChromeML" is the list of folders where general chrome manifests are
know to exist and should be the folder tag you need to use. You should
be able to add your own directory service provider that handles
"ChromeML" and returns your additional folders.

Hai Jie Wu

ungelesen,
12.10.2007, 01:40:3512.10.07
an
Thanks Mark!
0 neue Nachrichten