bug 121171, CallEventHandler ignores mScriptsEnabled, r=brendan, sr=jst

do nothing, but return a positive result from nsJSContext::CallEventHandler if scripts are disabled on this context.
This commit is contained in:
rginda%netscape.com 2002-01-24 13:25:46 +00:00
Родитель 24ebcbe7fd
Коммит b876d6cabd
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -979,6 +979,11 @@ NS_IMETHODIMP
nsJSContext::CallEventHandler(void *aTarget, void *aHandler, PRUint32 argc,
void *argv, PRBool *aBoolResult, PRBool aReverseReturnResult)
{
if (!mScriptsEnabled) {
*aBoolResult = !aReverseReturnResult;
return NS_OK;
}
// This one's a lot easier than EvaluateString because we don't have to
// hassle with principals: they're already compiled into the JS function.
nsresult rv;