konqueror: LiveConnect/JavaScript not working (IcedTeaPlugin not recognized)

Bug #290707 reported by Matthias Klose on 2008-10-29
Affects Status Importance Assigned to Milestone
KDE Base
kde-baseapps (Ubuntu)

Bug Description

Binary package hint: konqueror

konqueror does have it's very own idea about applet support, but doesn't allow this support be replaced with support which comes with other plugins like IcedTeaPlugin.

There's more than one issue:

 - /usr/lib/xulrunner-addons/plugins isn't searched for plugins. AFAIK this is the standard path for xulrunner-1.9
   compatible plugins (there are other paths like /opt/foo* which are searched for plugins, and probably should
  be removed.

 - Now with /usr/lib/xulrunner-addons/plugins added, LiveConnect still doesn't work. As an example visit
   http://people.ubuntu.com/~doko/java/ColorBlockApplet.html and you should be able to change the colors
   and get the alert box by clicking the applet area (install firefox and openjdk-6-jre for a working example).

As a workaround just use firefox for applets requiring LiveConnect support.

Confirmed by Riddell on irc.

Matthias Klose (doko) wrote :

icedtea6-plugin needs to be installed as well

Changed in kdebase:
importance: Undecided → High
status: New → Confirmed
Harald Sitter (apachelogger) wrote :

The first issue is no issue because Konqueror accesses java through KJAS, which runs the JVM directly. I don't know why it does do that, but I suppose there is a sensible reason.

The 2nd one is partly an issue indeed (or actually mostly). LiveConnect only seems to be working when Java uses KIO, in fact only when it does so. I suppose that only if it is using KIO, Konqueror can actually connect JavaScript and the applet.
The actually problems appears when tryign to trigger a second color change: the JavaScript will not be able to be execute. An inspection of the JavaScript debugger indicates that document.ColorBlockApplet.setColor is once more not available.

So we need to find out why KDE doesn't default to KIO, make Kubuntu use KIO if there is no good reason to not do that and fix the bug of not being able to access the applet more than once.

On a side note: doAlert doesn't get called, might be a limitation of the implimentation though.

Jonathan Riddell (jr) wrote :

This applet should work with kjava I'm told, I've passed the bug upstream for examination.

I'm told that icedtea6-plugin does not work with Konqueror (or with qtwebkit) because it is not full NPAPI.

Changed in kdebase:
status: Confirmed → Triaged
Changed in kdebase:
status: Unknown → Confirmed
Matthias Klose (doko) wrote :

> I'm told that icedtea6-plugin does not work with Konqueror (or with qtwebkit)
> because it is not full NPAPI.

in this case please ask upstream to file a report in icedtea.classpath.org

tags: added: iso-testing
Paulo Dias (paulo-miguel-dias) wrote :

konqueror DOES work with the aforementioned URL and openjdk.

just enable BOTH kio and security boxes and restart konqueror, should work just fine.

tested with konqueror 4.4.0 in lucid with java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8pre) (6b18~pre1-1ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

Changed in kdebase:
importance: Unknown → Medium
affects: kdebase (Ubuntu) → kde-baseapps (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.