danriegsecker / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Movies do not load in Firefox 3 Mac OS X (+solution) #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Go to any SWFObject sample page using Firefox 3 Mac OS X.  Example: 
http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_api_createswf.html

2. Notice that movie never appears (I have Flash Player 9,0,124,0).

What is the expected output? What do you see instead?
I expect the movie to load.  I see nothing on the page.

What version of the product are you using? On what operating system?
SWFObject 2.1 on Mac OS X 10.5.5.

Please provide any additional information below.
The issue appears to be that Firefox 3 on Mac OS X ignores the OBJECT tag.  
Changing 
swfobject.js to recognize Firefox on Mac and falling back to the EMBED tag 
works for me.

Here is a diff to the swfobject.js source file, my change on the right:

3a4
>   (Includes patch by jhuckaby to support Firefox 3 on Mac OS X)
87c88,89
<           mac = p ? /mac/.test(p) : /mac/.test(u);

---
>           mac = p ? /mac/.test(p) : /mac/.test(u),
>           ff = /firefox/.test(u);
96c98
<       return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, 
win:windows, mac:mac 
};

---
>       return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, 
win:windows, 
mac:mac, ff:ff };
378c380
<           else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore 
the object 
element's nested param elements: fall back to the proprietary embed element

---
>           else if ((ua.mac && ua.ff) || (ua.webkit && ua.webkit < 312)) { // Older 
webkit 
engines ignore the object element's nested param elements: fall back to the 
proprietary embed 
element

Original issue reported on code.google.com by jhuck...@gmail.com on 26 Oct 2008 at 6:05

Attachments:

GoogleCodeExporter commented 9 years ago
Ha, we test with Firefox 3/Mac OSX ourselves all the time. This is not a 
SWFObject
issue, there is just something wrong with you environment. Just uninstall Flash
Player using the Adobe uninstaller and reinstalling it again will probably help 
(see
our FAQ).

Original comment by bobbyvandersluis on 26 Oct 2008 at 12:01

GoogleCodeExporter commented 9 years ago
Oh hahahaha, you are 100% correct.  I had a stupid Firefox add-on called 
"AdBlock"
(that I don't even remember installing) which apparently only blocks OBJECT 
tags, not
EMBED tags.  How stupid of me.  Sorry to have wasted your time.

- Joe

Original comment by jhuck...@gmail.com on 26 Oct 2008 at 3:04