|
Re: Cache Problem when using Xulrunner in Eclipse RCP? [message #480683 is a reply to message #479270] |
Tue, 18 August 2009 08:25 |
|
Yeah that problem killed me couple of times.
use it:
nsICacheService cacheService = (nsICacheService)
Mozilla.getInstance().getServiceManager().getServiceByContra ctID(
"@mozilla.org/network/cache-service;1",
nsICacheService.NS_ICACHESERVICE_IID);
cacheService.evictEntries(1);
cacheService.evictEntries(2);
And you should ask this problem Mozilla news group.
PS. You can override default GRE choosing by setting system property:
"org.eclipse.swt.browser.XULRunnerPath"
System.getProperties().put(
"org.eclipse.swt.browser.XULRunnerPath",
"YOUR XUL RUNNER PATH");
SWT loads Mozilla browser with that. (XUL Runner must be uncompressed.)
Martin Burchard wrote:
> Hello,
>
> in my RCP I explicitly use the Mozilla Engine (Xulrunner).
>
> browser = new Browser(parent, SWT.MOZILLA);
>
> Currently I work under Windows.
>
> When doing so, a new Mozilla profile named eclipse is created and
> automatically chosen when starting my application.
> This seems to be a default.
> Within this eclipse profile the Cache folder is filled when browsing around.
>
> Now I start a second RCP application, that also uses the Gecko engine.
> This other application also uses the eclipse profile folder and the
> Cache folder.
>
> If now I reload my page in the first application, loading does not
> finish. No images are shown (they should come from cache)...
>
> Can somebody else confirm this behaviour? Is there a solution?
>
> Regards
> Martin
|
|
|
Re: Cache Problem when using Xulrunner in Eclipse RCP? [message #480818 is a reply to message #480683] |
Tue, 18 August 2009 14:58 |
Martin Burchard Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Thank you...
Am 18.08.2009 10:25, schrieb Jiyul:
> Yeah that problem killed me couple of times.
>
> use it:
> nsICacheService cacheService = (nsICacheService)
> Mozilla.getInstance().getServiceManager().getServiceByContra ctID(
> "@mozilla.org/network/cache-service;1",
> nsICacheService.NS_ICACHESERVICE_IID);
>
> cacheService.evictEntries(1);
> cacheService.evictEntries(2);
What will these two lines do exactly?
>
>
> And you should ask this problem Mozilla news group.
>
>
> PS. You can override default GRE choosing by setting system property:
> "org.eclipse.swt.browser.XULRunnerPath"
I do not use default GRE choosing. I use an adapted Version of
*org.eclipse.atf.mozilla.swt.browser* together with two plugins, that I
packed with *Xulrunner 1.9.1.3*. This works pretty cool
>
> System.getProperties().put(
> "org.eclipse.swt.browser.XULRunnerPath",
> "YOUR XUL RUNNER PATH");
>
> SWT loads Mozilla browser with that. (XUL Runner must be uncompressed.)
I know ;)
>
> Martin Burchard wrote:
>> Hello,
>>
>> in my RCP I explicitly use the Mozilla Engine (Xulrunner).
>>
>> browser = new Browser(parent, SWT.MOZILLA);
>>
>> Currently I work under Windows.
>>
>> When doing so, a new Mozilla profile named eclipse is created and
>> automatically chosen when starting my application.
>> This seems to be a default.
>> Within this eclipse profile the Cache folder is filled when browsing
>> around.
>>
>> Now I start a second RCP application, that also uses the Gecko engine.
>> This other application also uses the eclipse profile folder and the
>> Cache folder.
>>
>> If now I reload my page in the first application, loading does not
>> finish. No images are shown (they should come from cache)...
>>
>> Can somebody else confirm this behaviour? Is there a solution?
>>
>> Regards
>> Martin
>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04336 seconds