diff --git a/.mozconfig.mk b/.mozconfig.mk index f5788ca5..ab78b7f0 100644 --- a/.mozconfig.mk +++ b/.mozconfig.mk @@ -1,12 +1,12 @@ # gmake # This file is automatically generated for client.mk. -# Do not edit. Edit /c/projects/moz95/mozilla/mozconfig instead. +# Do not edit. Edit /c/projects/moz95/RetroZilla/mozconfig instead. # To create a new .mozconfig file, you can visit, # http://webtools.mozilla.org/build/config.cgi -# PATH=/local/bin:/c/mozilla-build//wget:/c/mozilla-build//7zip:/c/mozilla-build//blat261/full:/c/mozilla-build//python25:/c/mozilla-build//svn-win32-1.4.2/bin:/c/mozilla-build//upx203w:/c/mozilla-build//xemacs/XEmacs-21.4.19/i586-pc-win32:/c/mozilla-build//info-zip:/c/mozilla-build//nsis-2.22:/c/mozilla-build//nsis-2.33u:.:/usr/local/bin:/mingw/bin:/bin:/c/PROGRA~1/MICROS~3/Common/msdev98/BIN:/c/PROGRA~1/MICROS~3/VC98/BIN:/c/PROGRA~1/MICROS~3/Common/TOOLS/WINNT:/c/PROGRA~1/MICROS~3/Common/TOOLS:/c/WINNT/System32:/c/WINNT:/c/WINNT/System32/Wbem:/c/mozilla-build/moztools-180compat/bin +# PATH=/local/bin:/c/mozilla-build//wget:/c/mozilla-build//7zip:/c/mozilla-build//blat261/full:/c/mozilla-build//python25:/c/mozilla-build//svn-win32-1.4.2/bin:/c/mozilla-build//upx203w:/c/mozilla-build//xemacs/XEmacs-21.4.19/i586-pc-win32:/c/mozilla-build//info-zip:/c/mozilla-build//nsis-2.22:/c/mozilla-build//nsis-2.33u:.:/usr/local/bin:/mingw/bin:/bin:/c/PROGRA~1/MICROS~2/Common/msdev98/BIN:/c/PROGRA~1/MICROS~2/VC98/BIN:/c/PROGRA~1/MICROS~2/Common/TOOLS/WINNT:/c/PROGRA~1/MICROS~2/Common/TOOLS:/c/WINDOWS/System32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/mozilla-build/moztools-180compat/bin MOZ_MAKE_FLAGS=-j4 -MOZ_OBJDIR=/c/projects/moz95/obj-sm95-release +MOZ_OBJDIR=/c/projects/moz95/obj-sm95-release/ # --target=i586-pc-msvc is used by configure (not client.mk) # --enable-application=suite is used by configure (not client.mk) # --enable-optimize is used by configure (not client.mk) diff --git a/browser/app/nsBrowserApp.cpp b/browser/app/nsBrowserApp.cpp index 1bafc756..5aa7e40c 100644 --- a/browser/app/nsBrowserApp.cpp +++ b/browser/app/nsBrowserApp.cpp @@ -51,7 +51,7 @@ static const nsXREAppData kAppData = { NS_STRINGIFY(APP_VERSION), NS_STRINGIFY(BUILD_ID), "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", - "Copyright (c) 1998 - 2007 mozilla.org", + "Copyright (c) 1998 - 2019 RetroZilla", NS_XRE_ENABLE_PROFILE_MIGRATOR | NS_XRE_ENABLE_EXTENSION_MANAGER }; diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js index a5fbeb01..dd4a5d1b 100644 --- a/browser/components/preferences/main.js +++ b/browser/components/preferences/main.js @@ -308,10 +308,12 @@ var gMainPane = { */ _folderToIndex: function (aFolder) { + try { if (!aFolder || aFolder.equals(this._getDownloadsFolder("Desktop"))) return 0; else if (aFolder.equals(this._getDownloadsFolder("Downloads"))) return 1; + } catch(e) {} return 2; }, @@ -327,8 +329,13 @@ var gMainPane = { { var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); - var dir = fileLocator.get(this._getSpecialFolderKey(aFolder), + var dir; + try { + dir = fileLocator.get(this._getSpecialFolderKey(aFolder), Components.interfaces.nsILocalFile); + } catch(e) { + dir = aFolder; + } if (aFolder != "Desktop") dir.append("My Downloads"); // XXX l12y! diff --git a/config/version_win.pl b/config/version_win.pl index 3c0f00c7..459af409 100644 --- a/config/version_win.pl +++ b/config/version_win.pl @@ -112,7 +112,7 @@ if (!defined($official)) {$official="";} if (!defined($milestone)) {$milestone="";} if (!defined($module)) {$module="";} if (!defined($binary)) {$binary="";} -if (!defined($displayname)) {$displayname="Mozilla";} +if (!defined($displayname)) {$displayname="RetroZilla";} if (!defined($depth)) {$depth=".";} if (!defined($rcinclude)) {$rcinclude="";} if (!defined($objdir)) {$objdir=".";} @@ -257,8 +257,8 @@ if ($official eq "1") { } my $copyright = "License: MPL 1.1/GPL 2.0/LGPL 2.1"; -my $company = "Mozilla Foundation"; -my $trademarks = "Mozilla"; +my $company = "RetroZilla"; +my $trademarks = "RetroZilla"; my $productname = $displayname; diff --git a/configure.in b/configure.in index cb43c294..577ec186 100644 --- a/configure.in +++ b/configure.in @@ -841,7 +841,10 @@ TARGET_MD_ARCH=unix DIRENT_INO=d_ino CYGWIN_WRAPPER= WIN_TOP_SRC= -MOZ_USER_DIR=".mozilla" +:i + + +MOZ_USER_DIR=".retrozilla" HOST_AR='$(AR)' HOST_AR_FLAGS='$(AR_FLAGS)' @@ -1497,7 +1500,7 @@ case "$target" in _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-multichar" _MOZ_USE_RTTI=1 USE_DEPENDENT_LIBS= - MOZ_USER_DIR="Mozilla" + MOZ_USER_DIR="RetroZilla" ;; *-bsdi*) @@ -1751,7 +1754,7 @@ case "$target" in USE_SHORT_LIBNAME=1 MOZ_ENABLE_COREXFONTS= MOZ_ENABLE_POSTSCRIPT= - MOZ_USER_DIR="Mozilla" + MOZ_USER_DIR="RetroZilla" ;; @@ -1842,7 +1845,7 @@ case "$target" in BIN_SUFFIX='.exe' USE_SHORT_LIBNAME=1 MOZ_ENABLE_POSTSCRIPT= - MOZ_USER_DIR="Mozilla" + MOZ_USER_DIR="RetroZilla" dnl Hardcode to win95 for now - cls TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"' @@ -2077,7 +2080,7 @@ case "$target" in MOZ_ENABLE_POSTSCRIPT= RC=rc.exe RCFLAGS='-n' - MOZ_USER_DIR="Mozilla" + MOZ_USER_DIR="RetroZilla" if test "$MOZTOOLS"; then MOZ_TOOLS_DIR=`echo $MOZTOOLS | sed -e 's|\\\\|/|g'` @@ -4037,7 +4040,7 @@ mac|cocoa) TK_CFLAGS="-I${MACOS_SDK_DIR}/Developer/Headers/FlatCarbon" CFLAGS="$CFLAGS $TK_CFLAGS" CXXFLAGS="$CXXFLAGS $TK_CFLAGS" - MOZ_USER_DIR="Mozilla" + MOZ_USER_DIR="RetroZilla" AC_DEFINE(XP_MACOSX) AC_DEFINE(TARGET_CARBON) AC_DEFINE(TARGET_API_MAC_CARBON) @@ -4450,8 +4453,8 @@ xulrunner) ;; macbrowser) - MOZ_APP_NAME=mozilla - MOZ_APP_DISPLAYNAME=Mozilla + MOZ_APP_NAME=retrozilla + MOZ_APP_DISPLAYNAME=RetroZilla MOZ_APP_VERSION=$MOZILLA_VERSION MOZ_STORAGE=1 MOZ_EXTENSIONS_DEFAULT=" cookie xmlextras universalchardet typeaheadfind transformiix permissions spellcheck auth" @@ -4459,8 +4462,8 @@ macbrowser) ;; standalone) - MOZ_APP_NAME=mozilla - MOZ_APP_DISPLAYNAME=Mozilla + MOZ_APP_NAME=retrozilla + MOZ_APP_DISPLAYNAME=RetroZilla MOZ_APP_VERSION=$MOZILLA_VERSION ;; diff --git a/content/base/src/nsCopySupport.cpp b/content/base/src/nsCopySupport.cpp index cae61fa0..d4e11ae8 100644 --- a/content/base/src/nsCopySupport.cpp +++ b/content/base/src/nsCopySupport.cpp @@ -340,7 +340,7 @@ nsresult nsCopySupport::IsPlainTextContext(nsISelection *aSel, nsIDocument *aDoc nsCOMPtr bodyElem = do_QueryInterface(selContent); nsAutoString wsVal; rv = bodyElem->GetAttribute(NS_LITERAL_STRING("style"), wsVal); - if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("-moz-pre-wrap")))) + if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("pre-wrap")))) { *aIsPlainTextContext = PR_TRUE; break; diff --git a/content/base/src/nsDocumentEncoder.cpp b/content/base/src/nsDocumentEncoder.cpp index 53a94f92..800df5ed 100644 --- a/content/base/src/nsDocumentEncoder.cpp +++ b/content/base/src/nsDocumentEncoder.cpp @@ -1149,7 +1149,7 @@ nsHTMLCopyEncoder::SetSelection(nsISelection* aSelection) nsCOMPtr bodyElem = do_QueryInterface(selContent); nsAutoString wsVal; rv = bodyElem->GetAttribute(NS_LITERAL_STRING("style"), wsVal); - if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("-moz-pre-wrap")))) + if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("pre-wrap")))) { mIsTextWidget = PR_TRUE; break; diff --git a/content/base/src/nsPlainTextSerializer.cpp b/content/base/src/nsPlainTextSerializer.cpp index 6c0f5c26..00b65ab1 100644 --- a/content/base/src/nsPlainTextSerializer.cpp +++ b/content/base/src/nsPlainTextSerializer.cpp @@ -677,7 +677,7 @@ nsPlainTextSerializer::DoOpenContainer(const nsIParserNode* aNode, PRInt32 aTag) if(NS_SUCCEEDED(GetAttributeValue(aNode, nsHTMLAtoms::style, style)) && (kNotFound != (whitespace = style.Find("white-space:")))) { - if (kNotFound != style.Find("-moz-pre-wrap", PR_TRUE, whitespace)) { + if (kNotFound != style.Find("pre-wrap", PR_TRUE, whitespace)) { #ifdef DEBUG_preformatted printf("Set mPreFormatted based on style moz-pre-wrap\n"); #endif diff --git a/content/html/content/src/nsHTMLPreElement.cpp b/content/html/content/src/nsHTMLPreElement.cpp index 0c0a249d..5045b061 100644 --- a/content/html/content/src/nsHTMLPreElement.cpp +++ b/content/html/content/src/nsHTMLPreElement.cpp @@ -150,7 +150,7 @@ MapAttributesIntoRule(const nsMappedAttributes* aAttributes, if (aData->mTextData->mWhiteSpace.GetUnit() == eCSSUnit_Null) { // wrap: empty if (aAttributes->GetAttr(nsHTMLAtoms::wrap)) - aData->mTextData->mWhiteSpace.SetIntValue(NS_STYLE_WHITESPACE_MOZ_PRE_WRAP, eCSSUnit_Enumerated); + aData->mTextData->mWhiteSpace.SetIntValue(NS_STYLE_WHITESPACE_PRE_WRAP, eCSSUnit_Enumerated); // width: int (html4 attribute == nav4 cols) const nsAttrValue* value = aAttributes->GetAttr(nsHTMLAtoms::width); @@ -162,7 +162,7 @@ MapAttributesIntoRule(const nsMappedAttributes* aAttributes, if (value && value->Type() == nsAttrValue::eInteger) { // Force wrap property on since we want to wrap at a width // boundary not just a newline. - aData->mTextData->mWhiteSpace.SetIntValue(NS_STYLE_WHITESPACE_MOZ_PRE_WRAP, eCSSUnit_Enumerated); + aData->mTextData->mWhiteSpace.SetIntValue(NS_STYLE_WHITESPACE_PRE_WRAP, eCSSUnit_Enumerated); } } } diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 2676d428..c06384e6 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -4434,8 +4434,7 @@ nsEditor::IsPreformatted(nsIDOMNode *aNode, PRBool *aResult) const nsStyleText* styleText = frame->GetStyleText(); - *aResult = NS_STYLE_WHITESPACE_PRE == styleText->mWhiteSpace || - NS_STYLE_WHITESPACE_MOZ_PRE_WRAP == styleText->mWhiteSpace; + *aResult = styleText->WhiteSpaceIsSignificant(); return NS_OK; } diff --git a/editor/libeditor/text/nsPlaintextEditor.cpp b/editor/libeditor/text/nsPlaintextEditor.cpp index a3b02cd4..d618f75e 100644 --- a/editor/libeditor/text/nsPlaintextEditor.cpp +++ b/editor/libeditor/text/nsPlaintextEditor.cpp @@ -1002,12 +1002,12 @@ nsPlaintextEditor::SetWrapWidth(PRInt32 aWrapColumn) // and now we're ready to set the new whitespace/wrapping style. if (aWrapColumn > 0 && !mWrapToWindow) // Wrap to a fixed column { - styleValue.AppendLiteral("white-space: -moz-pre-wrap; width: "); + styleValue.AppendLiteral("white-space: pre-wrap; width: "); styleValue.AppendInt(aWrapColumn); styleValue.AppendLiteral("ch;"); } else if (mWrapToWindow || aWrapColumn == 0) - styleValue.AppendLiteral("white-space: -moz-pre-wrap;"); + styleValue.AppendLiteral("white-space: pre-wrap;"); else styleValue.AppendLiteral("white-space: pre;"); diff --git a/jpeg/jdmarker.c b/jpeg/jdmarker.c index c0fd8c2a..8e5d5a64 100644 --- a/jpeg/jdmarker.c +++ b/jpeg/jdmarker.c @@ -236,7 +236,7 @@ get_sof (j_decompress_ptr cinfo, boolean is_prog, boolean is_arith) /* Process a SOFn marker */ { INT32 length; - int c, ci; + int c, ci, i; jpeg_component_info * compptr; INPUT_VARS(cinfo); @@ -273,11 +273,27 @@ get_sof (j_decompress_ptr cinfo, boolean is_prog, boolean is_arith) cinfo->comp_info = (jpeg_component_info *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, cinfo->num_components * SIZEOF(jpeg_component_info)); - - for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; - ci++, compptr++) { + + for (ci = 0; ci < cinfo->num_components; ci++) { + INPUT_BYTE(cinfo, c, return FALSE); + /* Check to see whether component id has already been seen */ + /* (in violation of the spec, but unfortunately seen in some */ + /* files). If so, create "fake" component id equal to the */ + /* max id seen so far + 1. */ + for (i = 0, compptr = cinfo->comp_info; i < ci; i++, compptr++) { + if (c == compptr->component_id) { + compptr = cinfo->comp_info; + c = compptr->component_id; + compptr++; + for (i = 1; i < ci; i++, compptr++) { + if (compptr->component_id > c) c = compptr->component_id; + } + c++; + break; + } + } + compptr->component_id = c; compptr->component_index = ci; - INPUT_BYTE(cinfo, compptr->component_id, return FALSE); INPUT_BYTE(cinfo, c, return FALSE); compptr->h_samp_factor = (c >> 4) & 15; compptr->v_samp_factor = (c ) & 15; @@ -300,7 +316,7 @@ get_sos (j_decompress_ptr cinfo) /* Process a SOS marker */ { INT32 length; - int i, ci, n, c, cc; + int c, ci, i, n; jpeg_component_info * compptr; INPUT_VARS(cinfo); @@ -321,24 +337,38 @@ get_sos (j_decompress_ptr cinfo) /* Collect the component-spec parameters */ for (i = 0; i < n; i++) { - INPUT_BYTE(cinfo, cc, return FALSE); INPUT_BYTE(cinfo, c, return FALSE); - + + /* Detect the case where component id's are not unique, and, if so, */ + /* create a fake component id using the same logic as in get_sof. */ + for (ci = 0; ci < i; ci++) { + if (c == cinfo->cur_comp_info[ci]->component_id) { + c = cinfo->cur_comp_info[0]->component_id; + for (ci = 1; ci < i; ci++) { + compptr = cinfo->cur_comp_info[ci]; + if (compptr->component_id > c) c = compptr->component_id; + } + c++; + break; + } + } + for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; ci++, compptr++) { - if (cc == compptr->component_id) + if (c == compptr->component_id) goto id_found; } - ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, cc); + ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, c); id_found: cinfo->cur_comp_info[i] = compptr; + INPUT_BYTE(cinfo, c, return FALSE); compptr->dc_tbl_no = (c >> 4) & 15; compptr->ac_tbl_no = (c ) & 15; - - TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, cc, + + TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, compptr->component_id, compptr->dc_tbl_no, compptr->ac_tbl_no); } @@ -454,6 +484,8 @@ get_dht (j_decompress_ptr cinfo) if (count > 256 || ((INT32) count) > length) ERREXIT(cinfo, JERR_BAD_HUFF_TABLE); + MEMZERO(huffval, SIZEOF(huffval)); /* pre-zero array for later copy */ + for (i = 0; i < count; i++) INPUT_BYTE(cinfo, huffval[i], return FALSE); diff --git a/layout/base/nsStyleConsts.h b/layout/base/nsStyleConsts.h index 66eaa4b4..dc04fcca 100644 --- a/layout/base/nsStyleConsts.h +++ b/layout/base/nsStyleConsts.h @@ -569,7 +569,7 @@ #define NS_STYLE_WHITESPACE_NORMAL 0 #define NS_STYLE_WHITESPACE_PRE 1 #define NS_STYLE_WHITESPACE_NOWRAP 2 -#define NS_STYLE_WHITESPACE_MOZ_PRE_WRAP 3 +#define NS_STYLE_WHITESPACE_PRE_WRAP 3 // See nsStyleText #define NS_STYLE_UNICODE_BIDI_NORMAL 0 diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index 23d114c9..4b2875c7 100644 --- a/layout/generic/nsLineLayout.cpp +++ b/layout/generic/nsLineLayout.cpp @@ -1927,8 +1927,7 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd) nsCOMPtr fm; rc->GetFontMetrics(*getter_AddRefs(fm)); - PRBool preMode = (mStyleText->mWhiteSpace == NS_STYLE_WHITESPACE_PRE) || - (mStyleText->mWhiteSpace == NS_STYLE_WHITESPACE_MOZ_PRE_WRAP); + PRBool preMode = mStyleText->WhiteSpaceIsSignificant(); // See if the span is an empty continuation. It's an empty continuation iff: // - it has a prev-in-flow diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index b6693221..408b6a94 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -631,7 +631,7 @@ public: mNumJustifiableCharacterReceivingExtraJot = 0; mExtraSpacePerJustifiableCharacter = 0; mPreformatted = (NS_STYLE_WHITESPACE_PRE == mText->mWhiteSpace) || - (NS_STYLE_WHITESPACE_MOZ_PRE_WRAP == mText->mWhiteSpace); + (NS_STYLE_WHITESPACE_PRE_WRAP == mText->mWhiteSpace); mJustifying = (NS_STYLE_TEXT_ALIGN_JUSTIFY == mText->mTextAlign) && !mPreformatted; @@ -5907,7 +5907,7 @@ nsTextFrame::Reflow(nsPresContext* aPresContext, } PRBool wrapping = (NS_STYLE_WHITESPACE_NORMAL == ts.mText->mWhiteSpace) || - (NS_STYLE_WHITESPACE_MOZ_PRE_WRAP == ts.mText->mWhiteSpace); + (NS_STYLE_WHITESPACE_PRE_WRAP == ts.mText->mWhiteSpace); // Set whitespace skip flag PRBool skipWhitespace = PR_FALSE; @@ -6179,7 +6179,7 @@ nsTextFrame::TrimTrailingWhiteSpace(nsPresContext* aPresContext, const nsStyleText* textStyle = GetStyleText(); if (mContentLength && (NS_STYLE_WHITESPACE_PRE != textStyle->mWhiteSpace) && - (NS_STYLE_WHITESPACE_MOZ_PRE_WRAP != textStyle->mWhiteSpace)) { + (NS_STYLE_WHITESPACE_PRE_WRAP != textStyle->mWhiteSpace)) { // Get the text fragments that make up our content nsCOMPtr tc = do_QueryInterface(mContent); diff --git a/layout/generic/nsTextTransformer.cpp b/layout/generic/nsTextTransformer.cpp index 3891d50a..16e75e0e 100644 --- a/layout/generic/nsTextTransformer.cpp +++ b/layout/generic/nsTextTransformer.cpp @@ -260,7 +260,7 @@ nsTextTransformer::Init(nsIFrame* aFrame, if (NS_STYLE_WHITESPACE_PRE == styleText->mWhiteSpace) { mMode = ePreformatted; } - else if (NS_STYLE_WHITESPACE_MOZ_PRE_WRAP == styleText->mWhiteSpace) { + else if (NS_STYLE_WHITESPACE_PRE_WRAP == styleText->mWhiteSpace) { mMode = ePreWrap; } mTextTransform = styleText->mTextTransform; @@ -1569,7 +1569,7 @@ struct SelfTestData { static PRUint8 preModeValue[NUM_MODES] = { NS_STYLE_WHITESPACE_NORMAL, NS_STYLE_WHITESPACE_PRE, - NS_STYLE_WHITESPACE_MOZ_PRE_WRAP + NS_STYLE_WHITESPACE_PRE_WRAP }; static PRUnichar test1text[] = { @@ -1812,7 +1812,7 @@ nsTextTransformer::Init2(const nsTextFragment* aFrag, if (NS_STYLE_WHITESPACE_PRE == aWhiteSpace) { mMode = ePreformatted; } - else if (NS_STYLE_WHITESPACE_MOZ_PRE_WRAP == aWhiteSpace) { + else if (NS_STYLE_WHITESPACE_PRE_WRAP == aWhiteSpace) { mMode = ePreWrap; } mTextTransform = aTextTransform; diff --git a/layout/inspector/src/inDOMUtils.cpp b/layout/inspector/src/inDOMUtils.cpp index 3b961384..b27e1c79 100644 --- a/layout/inspector/src/inDOMUtils.cpp +++ b/layout/inspector/src/inDOMUtils.cpp @@ -108,8 +108,7 @@ inDOMUtils::IsIgnorableWhitespace(nsIDOMCharacterData *aDataNode, presShell->GetPrimaryFrameFor(content, &frame); if (frame) { const nsStyleText* text = frame->GetStyleText(); - *aReturn = text->mWhiteSpace != NS_STYLE_WHITESPACE_PRE && - text->mWhiteSpace != NS_STYLE_WHITESPACE_MOZ_PRE_WRAP; + *aReturn = !text->WhiteSpaceIsSignificant(); } else { // empty inter-tag text node without frame, e.g., in between \n diff --git a/layout/style/nsCSSKeywordList.h b/layout/style/nsCSSKeywordList.h index 36d0f72c..8f42280e 100644 --- a/layout/style/nsCSSKeywordList.h +++ b/layout/style/nsCSSKeywordList.h @@ -355,6 +355,7 @@ CSS_KEY(physical, physical) CSS_KEY(pointer, pointer) CSS_KEY(portrait, portrait) CSS_KEY(pre, pre) +CSS_KEY(pre-wrap, pre_wrap) CSS_KEY(progress, progress) CSS_KEY(pt, pt) CSS_KEY(px, px) diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp index fecaf7d5..771b01a2 100644 --- a/layout/style/nsCSSProps.cpp +++ b/layout/style/nsCSSProps.cpp @@ -928,7 +928,8 @@ const PRInt32 nsCSSProps::kVolumeKTable[] = { const PRInt32 nsCSSProps::kWhitespaceKTable[] = { eCSSKeyword_pre, NS_STYLE_WHITESPACE_PRE, eCSSKeyword_nowrap, NS_STYLE_WHITESPACE_NOWRAP, - eCSSKeyword__moz_pre_wrap, NS_STYLE_WHITESPACE_MOZ_PRE_WRAP, + eCSSKeyword_pre_wrap, NS_STYLE_WHITESPACE_PRE_WRAP, + eCSSKeyword__moz_pre_wrap, NS_STYLE_WHITESPACE_PRE_WRAP, eCSSKeyword_UNKNOWN,-1 }; diff --git a/layout/style/nsStyleStruct.h b/layout/style/nsStyleStruct.h index 1b937f6f..56d1ba86 100644 --- a/layout/style/nsStyleStruct.h +++ b/layout/style/nsStyleStruct.h @@ -740,7 +740,7 @@ struct nsStyleText : public nsStyleStruct { PRBool WhiteSpaceIsSignificant() const { return mWhiteSpace == NS_STYLE_WHITESPACE_PRE || - mWhiteSpace == NS_STYLE_WHITESPACE_MOZ_PRE_WRAP; + mWhiteSpace == NS_STYLE_WHITESPACE_PRE_WRAP; } }; diff --git a/mailnews/extensions/smime/build/Makefile.in b/mailnews/extensions/smime/build/Makefile.in index 3c73d036..65c1e96a 100644 --- a/mailnews/extensions/smime/build/Makefile.in +++ b/mailnews/extensions/smime/build/Makefile.in @@ -71,6 +71,8 @@ else EXTRA_DSO_LIBS = msgbaseutil endif +else +SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)msgbsutl_s.$(LIB_SUFFIX) endif CPPSRCS = nsMsgSMIMEFactory.cpp @@ -79,10 +81,6 @@ SHARED_LIBRARY_LIBS = \ $(DIST)/lib/$(LIB_PREFIX)msgsmime_s.$(LIB_SUFFIX) \ $(NULL) -ifndef MOZ_STATIC_MAIL_BUILD -SHARED_LIBRARY_LIBS + = $(DIST)/lib/$(LIB_PREFIX)msgbsutl_s.$(LIB_SUFFIX) -endif - EXTRA_DSO_LDOPTS = \ $(LIBS_DIR) \ $(EXTRA_DSO_LIBS) \ diff --git a/mailnews/news/src/nsNNTPProtocol.cpp b/mailnews/news/src/nsNNTPProtocol.cpp index b45d1ff1..44c9abe3 100644 --- a/mailnews/news/src/nsNNTPProtocol.cpp +++ b/mailnews/news/src/nsNNTPProtocol.cpp @@ -283,9 +283,9 @@ const char *const stateLabels[] = { // TEMPORARY HARD CODED FUNCTIONS /////////////////////////////////////////////////////////////////////////////////////////// #ifdef XP_WIN -static char *XP_AppCodeName = "Mozilla"; +static char *XP_AppCodeName = "RetroZilla"; #else -static const char *XP_AppCodeName = "Mozilla"; +static const char *XP_AppCodeName = "RetroZilla"; #endif #define NET_IS_SPACE(x) ((x)==' ' || (x)=='\t') diff --git a/modules/libpref/src/init/all.js b/modules/libpref/src/init/all.js index 03179400..683f7de8 100644 --- a/modules/libpref/src/init/all.js +++ b/modules/libpref/src/init/all.js @@ -2390,3 +2390,6 @@ pref("print.print_command", "lp -c -s ${MOZ_PRINTER_NAME:+'-d '}${MOZ_PRINTER_NA #ifdef MOZ_X11 pref("network.gnomevfs.supported-protocols", "smb:,sftp:"); #endif + +// restrict gopher port to port 70 only +pref("network.gopher.port-restricted", true); diff --git a/netwerk/protocol/gopher/src/nsGopherChannel.cpp b/netwerk/protocol/gopher/src/nsGopherChannel.cpp index c286cd97..8196b235 100644 --- a/netwerk/protocol/gopher/src/nsGopherChannel.cpp +++ b/netwerk/protocol/gopher/src/nsGopherChannel.cpp @@ -122,13 +122,21 @@ nsGopherChannel::Init(nsIURI* uri, nsIProxyInfo* proxyInfo) if (NS_FAILED(rv)) return rv; + PRBool restrictedPort = PR_TRUE; + nsCOMPtr branch; + nsCOMPtr prefs = do_GetService("@mozilla.org/preferences-service;1", &rv); + if (!NS_FAILED(rv)) { + branch = do_QueryInterface(prefs); + + branch->GetBoolPref("network.gopher.port-restricted" , &restrictedPort); + } // For security reasons, don't allow anything expect the default // gopher port (70). See bug 71916 - bbaetz@cs.mcgill.ca -/* - if (mPort==-1) + if(!restrictedPort) { + if (mPort==-1) + mPort=GOPHER_PORT; + } else mPort=GOPHER_PORT; -*/ - mPort=GOPHER_PORT; // No path given if (buffer[0]=='\0' || (buffer[0]=='/' && buffer[1]=='\0')) { diff --git a/netwerk/streamconv/converters/nsIndexedToHTML.cpp b/netwerk/streamconv/converters/nsIndexedToHTML.cpp index a9fe9ff4..0bae31ed 100644 --- a/netwerk/streamconv/converters/nsIndexedToHTML.cpp +++ b/netwerk/streamconv/converters/nsIndexedToHTML.cpp @@ -376,7 +376,7 @@ nsIndexedToHTML::DoOnStartRequest(nsIRequest* request, nsISupports *aContext, buffer.AppendLiteral("