Skip to content

Commit 0d2808c

Browse files
author
dougt%netscape.com
committed
Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library. Moved nsRegistry and related libreg functionality into the obsolete library. Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO. Combined the following DLLs (source -> dest) uriloader -> docshell shistory -> docshell jsurl -> jsdom gkview -> gklayout Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer Modifed the xpt_link tool so that you can specify a �only include� cid list that can mask CID�s that you are not interested in. Added build options: Prevent the building of xpinstall (--disable-xpinstall) Prevent the building js component loader (--disable-jsloader) A build option to only build a single profile (--enable-single-profile) A build flag to only built the required xpfe components (--disable-xpfe-components). Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService Bug 194240, r/sr = darin, alec.
1 parent 5dfc4c8 commit 0d2808c

File tree

249 files changed

+1286
-4824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+1286
-4824
lines changed

Makefile.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ tier_2_dirs += \
128128
modules/libreg \
129129
string \
130130
xpcom \
131+
xpcom/obsolete \
131132
$(NULL)
132133

133134
ifdef NS_TRACE_MALLOC
@@ -184,6 +185,7 @@ tier_9_dirs += \
184185
content \
185186
layout \
186187
db \
188+
xpfe/components/shistory \
187189
docshell \
188190
webshell \
189191
profile \
@@ -206,7 +208,11 @@ ifdef MOZ_JPROF
206208
tier_9_dirs += tools/jprof
207209
endif
208210

209-
tier_9_dirs += xpfe xpinstall
211+
tier_9_dirs += xpfe
212+
213+
ifdef MOZ_XPINSTALL
214+
tier_9_dirs += xpinstall
215+
endif
210216

211217
ifdef MOZ_LEAKY
212218
tier_9_dirs += tools/leaky

allmakefiles.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ intl/uconv/ucvtw/Makefile
177177
intl/uconv/ucvtw2/Makefile
178178
intl/uconv/ucvko/Makefile
179179
intl/uconv/ucvibm/Makefile
180+
intl/uconv/native/Makefile
180181
intl/locale/Makefile
181182
intl/locale/public/Makefile
182183
intl/locale/idl/Makefile
@@ -337,6 +338,7 @@ MAKEFILES_libreg="
337338
modules/libreg/Makefile
338339
modules/libreg/include/Makefile
339340
modules/libreg/src/Makefile
341+
modules/libreg/standalone/Makefile
340342
"
341343

342344
MAKEFILES_libpref="
@@ -585,6 +587,8 @@ xpcom/reflect/xptinfo/Makefile
585587
xpcom/reflect/xptinfo/public/Makefile
586588
xpcom/reflect/xptinfo/src/Makefile
587589
xpcom/reflect/xptinfo/tests/Makefile
590+
xpcom/obsolete/Makefile
591+
xpcom/obsolete/component/Makefile
588592
xpcom/proxy/Makefile
589593
xpcom/proxy/public/Makefile
590594
xpcom/proxy/src/Makefile

build/mac/build_scripts/MozillaBuildList.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ sub BuildClientDist()
851851

852852
#LIBREG
853853
InstallFromManifest(":mozilla:modules:libreg:include:MANIFEST", "$distdirectory:libreg:");
854+
InstallFromManifest(":mozilla:modules:libreg:xpcom:MANIFEST", "$distdirectory:mozreg:");
855+
InstallFromManifest(":mozilla:modules:libreg:xpcom:MANIFEST_IDL", "$distdirectory:idl:");
854856

855857
#STRING
856858
InstallFromManifest(":mozilla:string:public:MANIFEST", "$distdirectory:string:");
@@ -1427,6 +1429,7 @@ sub BuildIDLProjects()
14271429
BuildIDLProject(":mozilla:security:manager:boot:macbuild:pipbootIDL.xml", "pipboot");
14281430
}
14291431

1432+
BuildIDLProject(":mozilla:modules:libreg:xpcom:macbuild:mozregIDL.xml", "mozreg");
14301433
BuildIDLProject(":mozilla:modules:libpref:macbuild:libprefIDL.xml", "libpref");
14311434
BuildIDLProject(":mozilla:modules:libutil:macbuild:libutilIDL.xml", "libutil");
14321435
BuildIDLProject(":mozilla:modules:libjar:macbuild:libjarIDL.xml", "libjar");
@@ -1701,6 +1704,7 @@ sub BuildCommonProjects()
17011704

17021705
BuildOneProject(":mozilla:modules:libreg:macbuild:libreg.xml", "libreg$D.shlb", 1, $main::ALIAS_SYM_FILES, 0);
17031706
BuildOneProject(":mozilla:xpcom:macbuild:xpcomPPC.xml", "xpcom$D.shlb", 1, $main::ALIAS_SYM_FILES, 0);
1707+
BuildOneProject(":mozilla:modules:libreg:xpcom:macbuild:mozreg.xml", "mozreg$D.shlb", 1, $main::ALIAS_SYM_FILES, 1);
17041708
BuildOneProject(":mozilla:js:macbuild:JavaScript.xml", "JavaScript$D.shlb", 1, $main::ALIAS_SYM_FILES, 0);
17051709
BuildOneProject(":mozilla:js:macbuild:LiveConnect.xml", "LiveConnect$D.$S", 1, $main::ALIAS_SYM_FILES, 0);
17061710

chrome/src/nsChromeRegistry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444

4545
#include <string.h>
4646
#include "nsCOMPtr.h"
47-
#include "nsIFileSpec.h"
48-
#include "nsSpecialSystemDirectory.h"
4947
#include "nsIChromeRegistry.h"
5048
#include "nsChromeRegistry.h"
5149
#include "nsChromeUIDataSource.h"

config/autoconf.mk.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ ENABLE_TESTS = @ENABLE_TESTS@
8787
IBMBIDI = @IBMBIDI@
8888
SUNCTL = @SUNCTL@
8989
ACCESSIBILITY = @ACCESSIBILITY@
90+
MOZ_XPINSTALL = @MOZ_XPINSTALL@
91+
MOZ_JSLOADER = @MOZ_JSLOADER@
92+
MOZ_USE_NATIVE_UCONV = @MOZ_USE_NATIVE_UCONV@
93+
MOZ_SINGLE_PROFILE = @MOZ_SINGLE_PROFILE@
9094
MOZ_LDAP_XPCOM = @MOZ_LDAP_XPCOM@
9195
MOZ_LDAP_XPCOM_EXPERIMENTAL = @MOZ_LDAP_XPCOM_EXPERIMENTAL@
9296
XPCOM_USE_LEA = @XPCOM_USE_LEA@
@@ -96,6 +100,9 @@ MOZ_INSTALLER = @MOZ_INSTALLER@
96100
MOZ_NO_ACTIVEX_SUPPORT = @MOZ_NO_ACTIVEX_SUPPORT@
97101
MOZ_ACTIVEX_SCRIPTING_SUPPORT = @MOZ_ACTIVEX_SCRIPTING_SUPPORT@
98102
XPC_IDISPATCH_SUPPORT = @MOZ_ACTIVEX_SCRIPTING_SUPPORT@
103+
MOZ_JSLOADER = @MOZ_JSLOADER@
104+
MOZ_XPINSTALL = @MOZ_XPINSTALL@
105+
MOZ_XPFE_COMPONENTS = @MOZ_XPFE_COMPONENTS@
99106

100107
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS = @MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS@
101108
MOZ_COMPONENT_NSPR_LIBS=@MOZ_COMPONENT_NSPR_LIBS@
@@ -289,6 +296,7 @@ NSPR_LIBS = @NSPR_LIBS@
289296
LDAP_CFLAGS = @LDAP_CFLAGS@
290297
LDAP_LIBS = @LDAP_LIBS@
291298
XPCOM_GLUE_LIBS = @XPCOM_GLUE_LIBS@
299+
MOZ_XPCOM_OBSOLETE_LIBS = @MOZ_XPCOM_OBSOLETE_LIBS@
292300

293301

294302
# UNIX98 iconv support

configure.in

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ XPCOM_LIBS='-L$(DIST)/bin -lxpcom'
498498

499499
MOZ_COMPONENT_NSPR_LIBS='-L$(DIST)/bin $(NSPR_LIBS)'
500500
MOZ_COMPONENT_XPCOM_LIBS='$(XPCOM_LIBS)'
501+
MOZ_XPCOM_OBSOLETE_LIBS='-L$(DIST)/lib -lxpcom_compat'
501502

502503
_PLATFORM_DEFAULT_TOOLKIT=gtk
503504
MOZ_WIDGET_TOOLKIT_LDFLAGS='-lwidget_$(MOZ_WIDGET_TOOLKIT)'
@@ -1034,6 +1035,7 @@ case "$target" in
10341035
XPCOM_LIBS='$(DIST)/lib/xpcom.lib'
10351036
MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
10361037
MOZ_COMPONENT_XPCOM_LIBS='$(XPCOM_LIBS)'
1038+
MOZ_XPCOM_OBSOLETE_LIBS='$(DIST)/lib/xpcom_compat.lib'
10371039
fi
10381040
AC_DEFINE(HAVE_SNPRINTF)
10391041
AC_DEFINE(_WINDOWS)
@@ -1259,6 +1261,7 @@ case "$target" in
12591261
AC_DEFINE(OS2EMX_PLAIN_CHAR)
12601262
MOZ_COMPONENT_NSPR_LIBS='-L$(DIST)/lib $(NSPR_LIBS)'
12611263
MOZ_COMPONENT_XPCOM_LIBS='-L$(DIST)/lib $(DIST)/lib/xpcom.lib'
1264+
MOZ_XPCOM_OBSOLETE_LIBS='-L$(DIST)/lib $(DIST)/lib/xpcom_compat.lib'
12621265
XPCOM_LIBS='-L$(DIST)/lib -lxpcom'
12631266
MOZ_JS_LIBS='$(DIST)/lib/libmozjs.lib'
12641267
MOZ_COMPONENT_XPCOM_LIBS='$(DIST)/lib/libxpcom.lib'
@@ -1305,6 +1308,7 @@ case "$target" in
13051308
MKCSHLIB='$(LD) $(DSO_LDOPTS)'
13061309
MOZ_JS_LIBS='$(DIST)/lib/mozjs.lib'
13071310
MOZ_COMPONENT_XPCOM_LIBS='$(DIST)/lib/xpcom.lib'
1311+
MOZ_XPCOM_OBSOLETE_LIBS='$(DIST)/lib/xpcom_compat.lib'
13081312
XPCOM_LIBS='$(DIST)/lib/xpcom.lib'
13091313
MOZ_JPEG_LIBS='$(DIST)/lib/mozjpeg.$(LIB_SUFFIX)'
13101314
MOZ_ZLIB_LIBS='$(DIST)/lib/mozz.$(LIB_SUFFIX)'
@@ -3372,6 +3376,57 @@ if test "$ACCESSIBILITY"; then
33723376
AC_DEFINE(ACCESSIBILITY)
33733377
fi
33743378

3379+
dnl ========================================================
3380+
dnl xpfe/components on by default
3381+
dnl ========================================================
3382+
MOZ_XPFE_COMPONENTS=1
3383+
MOZ_ARG_DISABLE_BOOL(xpfe-components,
3384+
[ --disable-xpfe-components Disable xpfe components],
3385+
MOZ_XPFE_COMPONENTS= )
3386+
3387+
dnl ========================================================
3388+
dnl xpinstall support on by default
3389+
dnl ========================================================
3390+
MOZ_XPINSTALL=1
3391+
MOZ_ARG_DISABLE_BOOL(xpinstall,
3392+
[ --disable-xpinstall Disable xpinstall support],
3393+
MOZ_XPINSTALL= )
3394+
if test "$MOZ_XPINSTALL"; then
3395+
AC_DEFINE(MOZ_XPINSTALL)
3396+
fi
3397+
3398+
dnl ========================================================
3399+
dnl Single profile support off by default
3400+
dnl ========================================================
3401+
MOZ_SINGLE_PROFILE=
3402+
MOZ_ARG_ENABLE_BOOL(single-profile,
3403+
[ --enable-single-profile Enable single profile support ],
3404+
MOZ_SINGLE_PROFILE=1,
3405+
MOZ_SINGLE_PROFILE= )
3406+
3407+
dnl ========================================================
3408+
dnl xpcom js loader support on by default
3409+
dnl ========================================================
3410+
MOZ_JSLOADER=1
3411+
MOZ_ARG_DISABLE_BOOL(jsloader,
3412+
[ --disable-jsloader Disable xpcom js loader support],
3413+
MOZ_JSLOADER= )
3414+
if test "$MOZ_JSLOADER"; then
3415+
AC_DEFINE(MOZ_JSLOADER)
3416+
fi
3417+
3418+
dnl ========================================================
3419+
dnl use native unicode converters
3420+
dnl ========================================================
3421+
MOZ_USE_NATIVE_UCONV=
3422+
MOZ_ARG_ENABLE_BOOL(native-uconv,
3423+
[ --enable-native-uconv enable iconv support],
3424+
MOZ_USE_NATIVE_UCONV=1 )
3425+
if test "$MOZ_USE_NATIVE_UCONV"; then
3426+
AC_DEFINE(MOZ_USE_NATIVE_UCONV)
3427+
fi
3428+
3429+
33753430
dnl ========================================================
33763431
dnl Libeditor can be build as plaintext-only,
33773432
dnl or as a full html and text editing component.
@@ -4590,8 +4645,10 @@ dnl = Cleanup section for misc ordering snafus
45904645
dnl =
45914646
if test "$OS_ARCH" = "WINNT" -a -z "$GNU_CC"; then
45924647
XPCOM_GLUE_LIBS='$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) $(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) $(DIST)/lib/$(LIB_PREFIX)string_obsolete_s.$(LIB_SUFFIX)'
4648+
MOZ_XPCOM_OBSOLETE_LIBS='$(DIST)/lib/$(LIB_PREFIX)xpcom_compat.$(LIB_SUFFIX)'
45934649
else
45944650
XPCOM_GLUE_LIBS='-L${DIST}/bin -L${DIST}/lib -lxpcomglue -lstring_s -lstring_obsolete_s'
4651+
MOZ_XPCOM_OBSOLETE_LIBS='-L${DIST}/bin -L${DIST}/lib -lxpcom_compat'
45954652
fi
45964653

45974654
dnl ========================================================
@@ -4685,6 +4742,8 @@ AC_SUBST(MOZ_LOG_REFCNT)
46854742
AC_SUBST(MOZ_LEAKY)
46864743
AC_SUBST(MOZ_JPROF)
46874744
AC_SUBST(MOZ_XPCTOOLS)
4745+
AC_SUBST(MOZ_JSLOADER)
4746+
AC_SUBST(MOZ_USE_NATIVE_UCONV)
46884747
AC_SUBST(MOZ_INSURE)
46894748
AC_SUBST(MOZ_INSURE_DIRS)
46904749
AC_SUBST(MOZ_INSURE_EXCLUDE_DIRS)
@@ -4714,6 +4773,9 @@ AC_SUBST(ENABLE_TESTS)
47144773
AC_SUBST(IBMBIDI)
47154774
AC_SUBST(SUNCTL)
47164775
AC_SUBST(ACCESSIBILITY)
4776+
AC_SUBST(MOZ_XPINSTALL)
4777+
AC_SUBST(MOZ_SINGLE_PROFILE)
4778+
AC_SUBST(MOZ_XPFE_COMPONENTS)
47174779
AC_SUBST(MOZ_USER_DIR)
47184780

47194781
AC_SUBST(ENABLE_STRIP)
@@ -4722,6 +4784,7 @@ AC_SUBST(USE_PREBINDING)
47224784
AC_SUBST(MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS)
47234785
AC_SUBST(MOZ_COMPONENT_NSPR_LIBS)
47244786
AC_SUBST(MOZ_COMPONENT_XPCOM_LIBS)
4787+
AC_SUBST(MOZ_XPCOM_OBSOLETE_LIBS)
47254788
AC_SUBST(XPCOM_LIBS)
47264789

47274790
AC_SUBST(MOZ_BUILD_ROOT)

content/html/content/src/nsFormSubmission.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,12 @@
3939

4040
// JBK added for submit move from content frame
4141
#include "nsIFile.h"
42-
#include "nsIFileStreams.h"
43-
#include "nsIFileSpec.h"
4442
#include "nsDirectoryServiceDefs.h"
4543
#include "nsIFormProcessor.h"
4644
#include "nsIURI.h"
4745
#include "nsNetUtil.h"
4846
#include "nsIPrefBranch.h"
4947
#include "nsIPrefService.h"
50-
#include "nsSpecialSystemDirectory.h"
5148
#include "nsLinebreakConverter.h"
5249
#include "nsICharsetConverterManager.h"
5350
#include "xp_path.h"

content/xbl/src/nsXBLWindowHandler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#include "nsIDOMEvent.h"
5858
#include "nsIContent.h"
5959
#include "nsHTMLAtoms.h"
60+
#include "nsXULAtoms.h"
6061
#include "nsINameSpaceManager.h"
6162
#include "nsIXBLDocumentInfo.h"
6263
#include "nsIDocument.h"

docshell/base/nsDocShell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#include "nsContentPolicyUtils.h" // NS_CheckContentLoadPolicy(...)
6060
#include "nsICategoryManager.h"
6161
#include "nsXPCOMCID.h"
62+
#include "nsISeekableStream.h"
6263

6364
// we want to explore making the document own the load group
6465
// so we can associate the document URI with the load group.
@@ -83,7 +84,6 @@
8384
#include "nsIWebProgress.h"
8485
#include "nsILayoutHistoryState.h"
8586
#include "nsITimer.h"
86-
#include "nsIFileStream.h"
8787
#include "nsISHistoryInternal.h"
8888
#include "nsIPrincipal.h"
8989
#include "nsIHistoryEntry.h"

docshell/base/nsWebShell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ typedef unsigned long HMTX;
113113
#include "nsIController.h"
114114
#include "nsIFocusController.h"
115115
#include "nsGUIEvent.h"
116-
#include "nsIFileStream.h"
117116
#include "nsISHistoryInternal.h"
118117

119118
#include "nsIHttpChannel.h"
120119
#include "nsIUploadChannel.h"
120+
#include "nsISeekableStream.h"
121121

122122
#include "nsILocaleService.h"
123123
#include "nsIStringBundle.h"

0 commit comments

Comments
 (0)