[raketa-tv.com] Remove use of navigator.plugins.length

RESOLVED WONTFIX

Status

Tech Evangelism Graveyard
Other
RESOLVED WONTFIX
4 years ago
a year ago

People

(Reporter: cpeterson, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
STR:
1. Try to play an ACE video stream on http://raketa-tv.com/watch


RESULT:
The video doesn't play because raketa-tv.com is enumerating navigator.plugins[] and looking for a plugin name match. As of Firefox 28 bug 757726, navigator.plugins[] no longer reports all installed plugins.

Bug 950445 is a similar bug for the ACE Stream plugin.

The broken code is in raketa-tv.com file ts-vlc.js, line 46:

        for (var i=0; i < navigator.plugins.length; i++) {
        if(navigator.plugins[i].name.match(/Torrent Stream P2P Multimedia Plug-in 2/gim))
            return "torrentstream";
        else if(navigator.plugins[i].name.match(/ACE Stream P2P Multimedia Plug-in/gim))
            return "acestream";
        }
(Reporter)

Comment 1

4 years ago
torrent-tv.ru fixed their website's ACE Stream plugin detection by looking up the plugin's MIME types like this:

mtypes = [
    {mime: 'application/x-acestream-plugin', id: 2},
    {mime: 'application/x-torrentstream-plugin', id: 3},
    {mime: 'application/x-tstream', id: 4},
    {mime: 'application/x-tstream', id: 1}
];
for(i=0; i < mtypes.length; i++) {
    mime = mtypes[i].mime;
    id = mtypes[i].id;
    if(typeof navigator.mimeTypes[mime] !== 'undefined') {
        if(navigator.mimeTypes[mime].enabledPlugin) {
            p = id;
            break;
        }
    }
}
(Reporter)

Comment 2

4 years ago
I sent raketa-tv.com an email about this bug through the site's Contact form.
(Reporter)

Updated

4 years ago
Depends on: 990808
Product: Tech Evangelism → Tech Evangelism Graveyard
(Reporter)

Comment 3

a year ago
This evangelism bug will no longer be relevant after we drop support for all plugins (other than Flash) in Firefox 52 (bug 1269807).
Status: NEW → RESOLVED
Last Resolved: a year ago
status-firefox27: unaffected → ---
status-firefox28: affected → ---
status-firefox29: affected → ---
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.