Summary: | External scripts are executed as Javascript even if they have another type [with test case] | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Aaron Isotton <aaron> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maksim |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Aaron Isotton
2005-01-30 18:30:49 UTC
Confirmed for HEAD 20050128 I have experienced this same bug on http://www.intocablesdelivery.com.ar/ 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 ) { |