? css-reporting.diff ? mozilla-css-error-reporting.patch ? obj--release ? obj-i586-pc-msvc-debug ? obj-i586-pc-msvc-firebird-debug ? obj-i586-pc-msvc-firebird-release ? obj-i586-pc-msvc-release ? template-pr-logging.patch Index: configure.in =================================================================== RCS file: /cvsroot/mozilla/configure.in,v retrieving revision 1.1335.2.7 diff -u -p -u -r1.1335.2.7 configure.in --- configure.in 26 May 2004 02:25:16 -0000 1.1335.2.7 +++ configure.in 7 Jun 2004 04:35:59 -0000 @@ -3351,6 +3351,26 @@ fi AC_SUBST(MOZ_PHOENIX) dnl ======================================================== +dnl = bclary CSS reporting +dnl ======================================================== +if test "$CSS_REPORT_PARSE_ERRORS"; then + AC_DEFINE(CSS_REPORT_PARSE_ERRORS) + AC_DEFINE(CSS_REPORT_MIME_ERRORS) +fi + +AC_SUBST(CSS_REPORT_PARSE_ERRORS) +AC_SUBST(CSS_REPORT_MIME_ERRORS) + +dnl ======================================================== +dnl = bclary enable nsHttp:3 logging +dnl ======================================================== +if test "$FORCE_PR_LOG"; then + AC_DEFINE(FORCE_PR_LOG) +fi + +AC_SUBST(FORCE_PR_LOG) + +dnl ======================================================== dnl = Thunderbird dnl ======================================================== if test "$MOZ_THUNDERBIRD"; then Index: content/html/style/src/nsCSSLoader.cpp =================================================================== RCS file: /cvsroot/mozilla/content/html/style/src/nsCSSLoader.cpp,v retrieving revision 3.184 diff -u -p -u -r3.184 nsCSSLoader.cpp --- content/html/style/src/nsCSSLoader.cpp 28 Feb 2004 22:33:55 -0000 3.184 +++ content/html/style/src/nsCSSLoader.cpp 7 Jun 2004 04:36:07 -0000 @@ -769,6 +769,13 @@ SheetLoadData::OnStreamComplete(nsIUnich ReportToConsole(NS_LITERAL_STRING("MimeNotCssWarn").get(), strings, 2, nsIScriptError::warningFlag); +#ifdef CSS_REPORT_MIME_ERRORS + fprintf(stderr, + "The stylesheet %s was loaded as CSS even though its MIME type, %s, is not \"text/css\"\n", + ToNewCString(spec), + ToNewCString(contentType)); + fflush(stderr); +#endif } } else { // Drop the data stream so that we do not load it @@ -785,6 +792,13 @@ SheetLoadData::OnStreamComplete(nsIUnich ReportToConsole(NS_LITERAL_STRING("MimeNotCss").get(), strings, 2, nsIScriptError::errorFlag); +#ifdef CSS_REPORT_MIME_ERRORS + fprintf(stderr, + "The stylesheet %s was not loaded because its MIME type, %s, is not \"text/css\"\n", + ToNewCString(spec), + ToNewCString(contentType)); + fflush(stderr); +#endif } } Index: content/html/style/src/nsCSSScanner.cpp =================================================================== RCS file: /cvsroot/mozilla/content/html/style/src/nsCSSScanner.cpp,v retrieving revision 3.61 diff -u -p -u -r3.61 nsCSSScanner.cpp --- content/html/style/src/nsCSSScanner.cpp 3 Apr 2004 19:01:38 -0000 3.61 +++ content/html/style/src/nsCSSScanner.cpp 7 Jun 2004 04:36:09 -0000 @@ -244,10 +244,11 @@ void nsCSSScanner::OutputError() { if (mError.IsEmpty()) return; -#ifdef DEBUG +#ifdef CSS_REPORT_PARSE_ERRORS fprintf(stderr, "CSS Error (%s :%u.%u): %s\n", mFileName.get(), mErrorLineNumber, mErrorColNumber, NS_ConvertUCS2toUTF8(mError).get()); + fflush(stderr); #endif // Log it to the JavaScript console Index: content/xul/templates/src/nsRuleNetwork.cpp =================================================================== RCS file: /cvsroot/mozilla/content/xul/templates/src/nsRuleNetwork.cpp,v retrieving revision 1.24 diff -u -p -u -r1.24 nsRuleNetwork.cpp --- content/xul/templates/src/nsRuleNetwork.cpp 5 Aug 2003 11:40:44 -0000 1.24 +++ content/xul/templates/src/nsRuleNetwork.cpp 7 Jun 2004 04:36:11 -0000 @@ -374,7 +374,7 @@ Value::operator PRInt32() const return (mType == eInteger) ? mInteger : 0; } -#ifdef DEBUG +#if defined(DEBUG) || defined(FORCE_PR_LOG) #include "nsIRDFResource.h" #include "nsIRDFLiteral.h" #include "nsString.h" Index: content/xul/templates/src/nsRuleNetwork.h =================================================================== RCS file: /cvsroot/mozilla/content/xul/templates/src/nsRuleNetwork.h,v retrieving revision 1.21 diff -u -p -u -r1.21 nsRuleNetwork.h --- content/xul/templates/src/nsRuleNetwork.h 5 Aug 2003 11:40:44 -0000 1.21 +++ content/xul/templates/src/nsRuleNetwork.h 7 Jun 2004 04:36:12 -0000 @@ -153,7 +153,7 @@ public: PLHashNumber Hash() const; -#ifdef DEBUG +#if defined(DEBUG) || defined(FORCE_PR_LOG) void ToCString(nsACString& aResult); #endif };