[Webkit-unassigned] [Bug 31676] New: Javascript error with Totem plugin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 19 11:59:21 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31676

           Summary: Javascript error with Totem plugin
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hadess at hadess.net


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list