43 Commits

Author SHA1 Message Date
locka%iol.ie
1f72d24052 Return error codes from NS_InitXPCOM2 & NS_ShutdownXPCOM in the event of failure. b=195555 r=sfraser sr=dougt a=sspitzer
git-svn-id: svn://10.0.0.236/trunk@142320 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-12 12:13:21 +00:00
dougt%netscape.com
39061b33ac Backing out 157597
git-svn-id: svn://10.0.0.236/trunk@130318 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 01:56:37 +00:00
dougt%netscape.com
d7be4a17ef Relanding 157597 - Make embedding base and examples use XPCOM Glue. r=adamlock, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@130248 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-23 17:21:47 +00:00
chak%netscape.com
98ed7836a1 Fix for #168255 - Change references to MRE into GRE in XPCOM/Embedding
r=dougt, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@129568 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 22:18:43 +00:00
dougt%netscape.com
8f7fb38feb Mfcembed no longer runs in Visual Studio Debugger, r=timeless, sr=alec, a=rjesup, b=166977
git-svn-id: svn://10.0.0.236/trunk@128989 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 20:19:14 +00:00
dougt%netscape.com
d1fc1c4b9d Fixes NS_InitEmbedding unconditionally calls AutoRegister. This also removes xpinstall from using component.reg which I believe is the last users of this file. r=chak,dveditz sr=bryner b=149208
git-svn-id: svn://10.0.0.236/trunk@127101 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 22:09:25 +00:00
dougt%netscape.com
e9d9254cc7 backing out
git-svn-id: svn://10.0.0.236/trunk@125454 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 06:58:27 +00:00
dougt%netscape.com
ecdd8ab65f Fixes the following:
154047
This change cleans up the category manager in hopes to freeze it for 1.1 final.  This change removes dead and unsupported methods from the interface as well as removes the C++ code from the interface.  This should land for 1.1b since users of the current category manager will have to update their components.

157597
Make embedding base and examples use XPCOM Glue
This change makes our embedding samples use the XPCOM glue.

157625
nsLocalFile::Remove's file pointer is sometimes null afte...
This fixes a crash when we dereference null.  It is a bandaide fix as the real problems involves retooling the directory enumerator.

157801
This fixes a terrible state which you can get into whereby XPCOM will fail to startup regardless of what you do.  The fix is to cause autoreg to happen if the component registry (compreg.dat) is not found.

r/sr=alecf@netscape.com, rpotts@netscape.com.  a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@125444 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:09:10 +00:00
chak%netscape.com
ded609d173 Fix for #131175 - Chnages to register MRE components
r=dougt, sr=rpotts, a=drivers


git-svn-id: svn://10.0.0.236/trunk@123059 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:33:04 +00:00
dougt%netscape.com
a17830dad4 XPCOM initialize primary event queue. 135531. r=brendan@mozilla.org, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@118995 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-15 22:26:29 +00:00
dougt%netscape.com
011f9b10e5 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
dbaron%fas.harvard.edu
1604f09dd2 Remove the many forms of NS_SetupRegistry since the classes registered are all now part of proper components. r=dougt, jag sr=rpotts b=81527
git-svn-id: svn://10.0.0.236/trunk@110840 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 02:09:49 +00:00
dougt%netscape.com
c01e94cad7 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
dbaron%fas.harvard.edu
13b5500ba3 Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052
git-svn-id: svn://10.0.0.236/trunk@107583 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:24:10 +00:00
locka%iol.ie
9320e8b6d1 Removed chrome registry code from embedding API to improve startup performance. r=ccarlen@netscape.com sr=hyatt@netscape.com r=105462
git-svn-id: svn://10.0.0.236/trunk@105766 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 12:43:05 +00:00
alecf%netscape.com
0a278b6afc bug 101761 - clean up embed components so we can better understand REQUIRES r=cls
git-svn-id: svn://10.0.0.236/trunk@103856 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 20:17:35 +00:00
locka%iol.ie
aecb361ff6 Fix for fallout in embedding from component/service manager merge. b=98721 r=ccarlen@netscape.com sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@102532 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 18:05:50 +00:00
chak%netscape.com
85802ea20c Fix for #92798 - Asserts in nsParser.cpp when registering JS components
r=valseki, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@100225 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 20:31:54 +00:00
locka%iol.ie
2b77fe0542 Remove event queue destruction code from NS_TermEmbedding to prevent assertions later on. b=79181 r=rpotts@netscape.com sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@98457 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-02 19:23:40 +00:00
valeski%netscape.com
8deb3b45a4 mozilla diffs r=tao, sr=alecf, commercial diffs r=syd, sr=syd/shaver. lower-casing JS calls to createBundle. removing un-used nsILocale param from nsIStringBundle::CreateBundle(). 76332
git-svn-id: svn://10.0.0.236/trunk@93306 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 21:30:24 +00:00
sfraser%netscape.com
c696d9a508 Backing out valeski
git-svn-id: svn://10.0.0.236/trunk@93248 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 05:53:22 +00:00
valeski%netscape.com
4aea038db2 mozilla tree r=tao, sr=alecf. commercial tree r=syd, sr=syd/shaver. lowercasing the first char in JS method calls to createBundle. removing the dead locale parameter in the CreateBundle() method call. 76332
git-svn-id: svn://10.0.0.236/trunk@93239 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 04:16:22 +00:00
chak%netscape.com
1cb86d4edf Remaining Fixes for #68720 - EmbedAPI should use generic startup observers
r=ccarlen,sr=alecf

Fix for #71994
MfcEMbed must implement Get/SetVisibility of nsIEmbeddingSiteWindow
r=chak


git-svn-id: svn://10.0.0.236/trunk@89812 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:57:57 +00:00
attinasi%netscape.com
83e8e75acd Trying to fix bustage: removing references to appstartup stuff.
git-svn-id: svn://10.0.0.236/trunk@89481 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 08:39:37 +00:00
chak%netscape.com
142608a6a8 Last Fix for #68720 - EmbedAPI should use generic startup observers
r=ccarlen,sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89460 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:35:48 +00:00
ccarlen%netscape.com
b807b06014 Fix for bug 64501 - allow embedding apps to specify app registry location. Moves appfilelocprovider into xpcom.
r=dougt@netscape.com, sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@85095 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 22:51:57 +00:00
dougt%netscape.com
8a775fff06 Removes need for chrome r/a=blizzard@redhat.com b=54428
git-svn-id: svn://10.0.0.236/trunk@80198 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-01 05:26:26 +00:00
dougt%netscape.com
5b5da682a9 + Added OnSecurityChange() to nsIWebProgressListener interface.
+ Added dummy function to all users of nsIWebProgressListener
+ Added new security event sink.
+ Hooked up new event sink to docloader and friends.
+ Fixed memory leaks and crashes in nsSecureBrowserImpl.
+ Added AlertPrompt to nsIPrompt Interface.
+ Enabling xpcom test on unix.

Fixes bug 46872.  r=valeski/rpotts


git-svn-id: svn://10.0.0.236/trunk@79206 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 22:56:56 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
conrad%ingress.com
409fc82b6b 1. Removed NS_Init which took a path.
2. Added appfilelocation provider param.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@76123 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:10:06 +00:00
valeski%netscape.com
3ae56dd890 backing out
git-svn-id: svn://10.0.0.236/trunk@75981 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:46:00 +00:00
valeski%netscape.com
3738c48369 temp fix for build problem
git-svn-id: svn://10.0.0.236/trunk@75953 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:15:57 +00:00
conrad%ingress.com
dd41a9d6cc 1. Uses appfilelocationprovider. Can pass one in or pass nsnull and default is made.
2. Removed version of NS_InitEmbedding which took char* path.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@75950 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:07:25 +00:00
dougt%netscape.com
ad72d6a7d0 Minor changes. Using service manager returned from NS_InitXPCOM.
git-svn-id: svn://10.0.0.236/trunk@75295 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:37:44 +00:00
dougt%netscape.com
db2c70c95b bug 40750.
Adding followSymlink flag to nsILocalFile.
Adjusting callers.
windows shortcut optimizations.
r=blizzard@mozilla.org.
a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@74127 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:31:31 +00:00
blizzard%redhat.com
b2d851d0bf fix for bug #44790. Fix TestGtkEmbed crash on startup. Ignore the return value from nsIChromeRegistry::CheckForNewChrome(). Also, clean up event queue start up and shut down, fix tabs in file, some 80 col violations and some other code formatting cleanups. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@73872 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 02:16:34 +00:00
dougt%netscape.com
bf51a63eae 44113, 44190, 44191.
r/a=valeski@netscape.com

nsDocShellTreeOwner not handling chrome/content correctly.
Asserts when no toplevel window set.
Need to start chrome up from NS_InitEmbedding()
Test App changes.


git-svn-id: svn://10.0.0.236/trunk@73658 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 21:53:27 +00:00
blizzard%redhat.com
28a52581a9 build the embedding/base code on unix. fix trailing newline in nsEmbedBase.h and put the thread hack back in until we get a long term solution. bug #43952. r=adamlock,valeski a=brendan
git-svn-id: svn://10.0.0.236/trunk@73318 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:54:15 +00:00
locka%iol.ie
a0d9972be0 NOT PART OF BUILD. Created variant of NS_InitEmbedding that accepts an nsILocalFile object as a parameter
git-svn-id: svn://10.0.0.236/trunk@72764 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:19:12 +00:00
locka%iol.ie
c1eb9afb8d NOT PART OF BUILD. Moved API declarations into nsEmbedAPI.h
git-svn-id: svn://10.0.0.236/trunk@72762 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:05:49 +00:00
locka%iol.ie
6d162b6454 Commented out both embedding hacks by default
git-svn-id: svn://10.0.0.236/trunk@72757 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:48:11 +00:00
locka%iol.ie
e61a43d026 NOT PART OF BUILD
Added refcounting to Init/Term for balanced calling. Added a bogus call to create a string bundle on the main thread.


git-svn-id: svn://10.0.0.236/trunk@72029 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 15:39:43 +00:00
locka%iol.ie
2975b7b003 NOT PART OF BUILD!
New embedding APIs for *simple* initialisation by hiding all the XPCOM initialisation and kludges that embedding apps have to do.


git-svn-id: svn://10.0.0.236/trunk@71605 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 18:28:01 +00:00