RESOLVED WONTFIX 31676
Javascript error with Totem plugin
https://bugs.webkit.org/show_bug.cgi?id=31676
Summary Javascript error with Totem plugin
Bastien Nocera
Reported 2009-11-19 11:59:20 PST
webkitgtk-1.1.15.3-1.fc12.x86_64 epiphany-2.28.1-1.fc12.x86_64 Using a recent version of Totem's web browser plugin (anything newer than 2.26.0 should do), I get an error from this piece of javascript: <div id="player_page" class="player"> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="320" height="240" id="vlc"> </embed> <script type="text/javascript"> var vlc = document.getElementById("vlc"); if (vlc != null) { vlc.playlist.items.clear(); vlc.playlist.add("2012-musicvideo1_h480p.mov", null, ":sub-file=test.srt"); vlc.playlist.play(); } The error is: console message: http://localhost:12345/11.html @37: TypeError: Result of expression 'vlc.playlist' [undefined] is not an object. In Totem's plugin, vlc.playlist is a read-only property containing an object. The same code works in Firefox.
Attachments
Bastien Nocera
Comment 1 2009-11-20 05:43:31 PST
In chromium: Uncaught TypeError: Cannot read property 'items' of undefined So playlist is undefined as well. In my browser plugin, the "playlist" object is a read-only property of the vlc object.
Bastien Nocera
Comment 2 2018-03-30 06:44:29 PDT
Totem's web browser plugin doesn't exist any more.
Note You need to log in before you can comment on or make changes to this bug.