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
> nsIDirectoryServiceProvider* as its third arg that answers the profile
> directory in its getFile(...) implementation (property name "ProfD").
>
> Grant
>
> "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 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
> > > > it for http protocol without any problem.
>
> > > > Pages with https image links load in my embedded browser it crashes.
>
> > > > An unexpected error has been detected by HotSpot Virtual Machine:
> > > > #
> > > > #  SIGSEGV (0xb) at pc=0x00002aaae5c3fd2e, pid=14818, tid=1437473088
> > > > #
> > > > # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_13-b05 mixed mode)
> > > > # Problematic frame:
> > > > # C  [libnss3.so+0x50d2e]  NSSRWLock_LockRead+0xe
>
> > > > Iam missing some preferences.Can someone help on that?
>
> > > > Thanks in Advance,
> > > > Krithi
>
> > Thanks .I read about its correlation of this crash with profile and
> > tried to get
> > nsIProfile profile =
> > (nsIProfile)serviceManager.getServiceByContractID( "@mozilla.org/
> > profile/manager;1", nsIProfile.NS_IPROFILE_IID);
>
> > But it throws the exception Exception in thread "Thread-1"
> > org.mozilla.xpcom.XPCOMException: The function
> > "getServiceByContractID" returned an error condition  (0x80040154)
>
> > We have not set anything to disable profile in our .mozconfig during
> > build.
>
> > Is this a limitation with xulrunner1.8.1.3 ?
>
> > How can this be made to work?
>
> > Thanks in Advance,
> > Krithika

Thanks for your quick response. I commented the following lines and it
worked not sure why.
//ProfileLock profLock = mozilla.lockProfileDirectory(profileDir);
 //mozilla.notifyProfile();

How do I disable the certificate dialog popups ( which nsIPref allows
embedded browser to accept all server certificates).I need this
because Iam running it in command line in a headless way.

Thanks in Advance,
Krith

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to