зеркало из https://github.com/mozilla/gecko-dev.git
fix regression in 81161, make xsl:message work again, code by peterv and me, r=me,sicking, sr=scc, a=blizzard
This commit is contained in:
Родитель
17ef3e2e1d
Коммит
8d8de7017c
|
@ -59,6 +59,7 @@
|
|||
#include "nsIChannel.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsIDOMClassInfo.h"
|
||||
#include "nsIConsoleService.h"
|
||||
//#include "nslog.h"
|
||||
#else
|
||||
#include "printers.h"
|
||||
|
@ -72,7 +73,7 @@
|
|||
/**
|
||||
* XSLTProcessor is a class for Processing XSL stylesheets
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.57 $ $Date: 2001/06/20 07:07:11 $
|
||||
* @version $Revision: 1.58 $ $Date: 2001/06/21 08:24:58 $
|
||||
**/
|
||||
|
||||
/**
|
||||
|
@ -1224,9 +1225,19 @@ void XSLTProcessor::processAction
|
|||
delete dfrag;
|
||||
|
||||
//-- we should add a MessageObserver class
|
||||
#if 0
|
||||
// XXX DEBUG OUTPUT
|
||||
#ifdef TX_EXE
|
||||
cout << "xsl:message - "<< message << endl;
|
||||
#else
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIConsoleService> consoleSvc =
|
||||
do_GetService("@mozilla.org/consoleservice;1", &rv);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "xsl:message couldn't get console service");
|
||||
if (consoleSvc) {
|
||||
nsAutoString logString(NS_LITERAL_STRING("xsl:message - "));
|
||||
logString.Append(message.getConstNSString());
|
||||
rv = consoleSvc->LogStringMessage(logString.get());
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "xsl:message couldn't log");
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче