Closed
Bug 965493
Opened 10 years ago
Closed 8 years ago
[raketa-tv.com] Remove use of navigator.plugins.length
Categories
(Tech Evangelism Graveyard :: Other, defect)
Tech Evangelism Graveyard
Other
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: cpeterson, Unassigned)
References
Details
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•10 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•10 years ago
|
||
I sent raketa-tv.com an email about this bug through the site's Contact form.
Updated•9 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
Reporter | ||
Comment 3•8 years 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
Closed: 8 years 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.
Description
•