From kde-commits Wed Sep 27 22:06:08 2006 From: Maks Orlovich Date: Wed, 27 Sep 2006 22:06:08 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/html Message-Id: <1159394768.799548.26860.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=115939477920264 SVN commit 589296 by orlovich: Don't try to run external VBScript as ECMAScript (98216) Add a couple of symmetric mimetypes (134763) BUG:134763 BUG:98216 M +3 -1 htmltokenizer.cpp --- branches/KDE/3.5/kdelibs/khtml/html/htmltokenizer.cpp #589295:589296 @@ -395,7 +395,7 @@ CachedScript* cs = 0; // forget what we just got, load from src url instead - if ( !currentScriptSrc.isEmpty() && + if ( !currentScriptSrc.isEmpty() && javascript && (cs = parser->doc()->docLoader()->requestScript(currentScriptSrc, scriptSrcCharset) )) { cachedScript.enqueue(cs); } @@ -1153,6 +1153,8 @@ type.compare("text/ecmascript") != 0 && type.compare("text/livescript") != 0 && type.compare("application/x-javascript") != 0 && + type.compare("application/x-ecmascript") != 0 && + type.compare("application/javascript") != 0 && type.compare("application/ecmascript") != 0 ) javascript = false; } else if( a ) {