Bug 147995

Summary: javascript error prevents watching movie trailers on www.allocine.fr
Product: [Applications] konqueror Reporter: Éric Brunet <eric.brunet>
Component: kjsAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: lacsilva, linuxboy
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Éric Brunet 2007-07-18 21:39:54 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages

www.allocine.fr is a french site of information on cinema. (You have info on movies, time schedules of all theaters, etc.) It normally allows you to watch trailers of upcoming movies. Each trailer is a flash application, but it doesn't work with konqueror because of a javascript error before reaching the trailer itself.

To reproduce:

1) launch konqueror on www.allocine.fr
2) choose one movie on the left and click on "bande annonce" (trailer)
3) wait for the about 12 seconds of advertisement
4) see how nothing happens except a small bee on the bottom right.

Clicking on the small bee gives me

   Erreur : nœud  : TypeError: Value undefined (result of   
   expression findSWF("ACVision").fStart) is not an object. Cannot 
   be called.

Everything works fine with firefox. I know that flash is working for me in konqueror because I can use youtube.
Comment 1 linuxboy 2007-12-08 17:25:49 UTC
This seems very similar to a bug signalled by me:

https://bugs.kde.org/show_bug.cgi?id=149673

I believe that problem was flash, but now I think that problem is javascript.

Anyway, I confirm this bug with allocine.fr.

Comment 2 Luis Silva 2008-04-04 17:59:59 UTC
I confirm this bug with Kubuntu packages for kde 3.5.5, 3.5.6, 3.5.7, 3.5.8 and the whole 4.0.x series so far. If I start konqueror from konsole I get the following:

(process:29698): GLib-GObject-CRITICAL **: gtype.c:2215: initialization assertion failed, use IA__g_type_init() prior to this function

(process:29698): Gtk-CRITICAL **: gtk_clipboard_get_for_display: assertion `GDK_IS_DISPLAY (display)' failed
Adobe FlashPlayer: gtk_clipboard_get(GDK_SELECTION_PRIMARY); failed. Trying to call gtk_init(0,0);
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  10
  Minor opcode:  0
  Resource id:  0x3400008
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x3400008
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x3400008
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  10
  Minor opcode:  0
  Resource id:  0x3400024
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x3400024
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x3400024
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  10
  Minor opcode:  0
  Resource id:  0x340002a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x340002a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x340002a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  10
  Minor opcode:  0
  Resource id:  0x3400033
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x3400033
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x3400033
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  10
  Minor opcode:  0
  Resource id:  0x340003c
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x340003c
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x340003c
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  10
  Minor opcode:  0
  Resource id:  0x3400040
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x3400040
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x3400040

Comment 3 Luis Silva 2008-04-04 18:06:49 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Pino Toscano 2008-04-04 18:28:32 UTC
*** Bug 158906 has been marked as a duplicate of this bug. ***
Comment 5 Luis Silva 2008-10-28 11:38:58 UTC
Bug still present in the 4.1.x series. I can post a whole lot of sites that show the same behaviour so developers can check if this is a java, flash or buggy site problem.
Comment 6 Justin Zobel 2021-03-21 00:25:10 UTC
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.
Comment 7 linuxboy 2021-03-21 09:34:45 UTC
(In reply to Justin Zobel from comment #6)
> 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.

current version of allocine.fr has no errors with the current version of konqueror (20.12.3).
Comment 8 Éric Brunet 2021-03-21 10:48:21 UTC
Well, I am no longer using konqueror, but I just restarted it to try. (I have an uptodate fedora 33). I still seem to be having some issues, but it is complicated: what I see depends on the web rendering engine (should I choose khtml, webkit, webengine?) I nearly add success with webengine: when I run on youtube.com, the page loads but there are grey squares instead of the video posters. When I click on one of them, the video plays (after the ads). On allocine.fr, sometimes I can see the ad, sometimes not. I didn't manage to get an actual trailer.

Well. There might be some old and unusual configuration choices on my computer, but this did not give me the impulse to go back to konqueror.

Anyway, you can close this bug if you want. I am no longer concerned, and the problem I see might have some other cause. And if there is still some problems, it is certainly for a different reason as 10 years ago...
Comment 9 Christoph Cullmann 2024-05-06 20:53:07 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann