Closed
Bug 342411
Opened 18 years ago
Closed 18 years ago
crash when opening https site with embedded browser
Categories
(Core Graveyard :: Embedding: APIs, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 309877
People
(Reporter: Olaf.Achthoven, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 With an embedded browser I cannot open any https site. By default I run into an assertion at pk11slot.c line 1844, function PK11_GetInternalSlot(): SECMODModule * mod = SECMOD_GetInternalModule(); PORT_Assert(mod != NULL); Assuming the embedder needs to initialize NSS, I call NSS_Init() with the correct parameters in the main thread after NS_InitEmbedding(). This produces another error when visiting an HTTPS site. An assertion at nsnsscomponent.cpp line 293: NS_ASSERTION( (0 == mInstanceCount), "nsNSSComponent is a singleton, but instantiated multiple times!"); This is caused because the AuthCertificateCallback or the HandleHandshakeCallback requests the component service with do_GetService(kNSSComponentCID) but for some reason a second instance of the service is created (thread problem?) Reproducible: Always Steps to Reproduce: 1. Build an embedded browser. for instance MFCEmbed 2. use LoadURI to navigate to https://www.mozilla.org/ Actual Results: Debug version asserts, release crashes. Expected Results: Show the correct HTML page my .mozconfig: (xpcom-obsolete added just to be able to compile MFCEmbed) mk_add_options MOZ_OBJDIR=C:/proj/mozilla/firebird-build topsrcdir=C:/proj/mozilla . $topsrcdir/browser/config/mozconfig ac_add_options --enable-debug ac_add_options --disable-optimize ac_add_options --enable-shared ac_add_options --disable-static ac_add_options --enable-crypto ac_add_options --enable-single-profile ac_add_options --disable-tests ac_add_options --disable-calendar ac_add_options --disable-mailnews ac_add_options --disable-ldap ac_add_options --disable-plugins ac_add_options --disable-view-source ac_add_options --disable-composer ac_add_options --disable-installer ac_add_options --disable-updater ac_add_options --disable-activex ac_add_options --disable-activex-scripting ac_add_options --enable-xpcom-obsolete
Comment 1•18 years ago
|
||
Please search for duplicates; this is an old issue where NSS doesn't work without a profile directory.
Whiteboard: DUPEME
The solution to bug 309877 is from september 2005, maybe it should be integrated into the trunk? This blocks embedded browser development. *** This bug has been marked as a duplicate of 309877 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•