Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

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

18 просмотров
Перейти к первому непрочитанному сообщению

Hai Jie Wu

не прочитано,
10 окт. 2007 г., 23:49:4710.10.2007
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

не прочитано,
11 окт. 2007 г., 10:40:5111.10.2007
"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

не прочитано,
12 окт. 2007 г., 01:40:3512.10.2007
Thanks Mark!
0 новых сообщений