Closed
Bug 286632
Opened 20 years ago
Closed 20 years ago
navigator.mimeTypes missing?
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: valaszoljnekem, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
The specified website has the JavaScript below. Although I don't have Flash
player installed, the placeholder for Flash appears. Maybe the script is wrong,
but I don't know.
<SCRIPT LANGUAGE="JavaScript">
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"]){
document.write('<EMBED src="./img/swf/welcome.swf"
quality="high" bgcolor="#FFFFFF" WIDTH="194" HEIGHT="39" NAME="welcome"
ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
} else {
document.write('<img src="./img/header/welcome.gif" WIDTH="194"
HEIGHT="39" border="0">');
}
</script>
Reproducible: AlwaysI'd guess this goes in Core / JavaScript Engine. However, the script should probably use navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin rather than just navigator.mimeTypes["application/x-shockwave-flash"]
Comment 2•20 years ago
|
||
-->invalid Bug 58811 changed this .mimetypes object. Use navigator.plugins to check for plugins.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•