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

Bug #290707 reported by Matthias Klose
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.

Tags: iso-testing
Revision history for this message
Matthias Klose (doko) wrote :

icedtea6-plugin needs to be installed as well

Changed in kdebase:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
In , Jonathan Riddell (jr) wrote :

Version: (using KDE 4.1.2)
Installed from: Ubuntu Packages

This java applet with liveconnect javascript does not work.


This bug was initially posted to launchpad.

Changed in kdebase:
status: Confirmed → Triaged
Changed in kdebase:
status: Unknown → Confirmed
Revision history for this message
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

Revision history for this message
In , SadEagle (maksim-kde) wrote :

Erk, and it suddenly works, but there is no relevant commit.

Revision history for this message
In , Harald Sitter (apachelogger) wrote :

Still cant get it to work with openjdk 6b16-1.6.1-1ubuntu3 and Konqueror 4.3.2

The issue seems to be in the liveconnect javascript processing, the applet loads properly but clicking the buttons on the example page does nothing :|

tags: added: iso-testing
Revision history for this message
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)
Revision history for this message
In , Justin Zobel (justin-zobel) wrote :

Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.

Changed in kde-baseapps:
status: Confirmed → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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