Patch for 70817, applet not shown
Koos Vriezen
koos.vriezen at xs4all.nl
Mon Dec 22 12:15:36 GMT 2003
Hi,
Apart from the jdk version, this bug fails to load an applet because of a TYPE
param defined in the param list as <param NAME="type" VALUE="61">. In current
khtml it is possible to use an APPLET tag as if is an OBJECT tag this way.
Restoring 3.1 behaviour see attached patch.
Koos
-------------- next part --------------
Index: rendering/render_frames.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/rendering/render_frames.cpp,v
retrieving revision 1.171
diff -u -3 -p -r1.171 render_frames.cpp
--- rendering/render_frames.cpp 18 Nov 2003 08:28:23 -0000 1.171
+++ rendering/render_frames.cpp 22 Dec 2003 12:06:39 -0000
@@ -619,7 +619,7 @@ void RenderPartObject::updateWidget()
aStr += p->value();
aStr += QString::fromLatin1("\"");
QString name_lower = p->name().lower();
- if (name_lower == QString::fromLatin1("type")) {
+ if (name_lower == QString::fromLatin1("type") && objbase->id() != ID_APPLET) {
objbase->setServiceType(p->value());
} else if (url.isEmpty() &&
(name_lower == QString::fromLatin1("src") ||
More information about the kfm-devel
mailing list