Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54420 - Flash plugin not working in mozilla and firefox when a .swf is embed into a page, but it works when the .swf file is accessed directly
Summary: Flash plugin not working in mozilla and firefox when a .swf is embed into a p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-19 07:35 UTC by Sanderfox
Modified: 2006-04-11 11:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sanderfox 2004-06-19 07:35:23 UTC
Whenever I try to open up a webpage where a flash files is embed in I get this error: 'The plugin initialization failed. Reload the page to try again.'
Reloading doesn't work and I've remerged netscape-flash a couple of times now and it's still not working. 

But...when I link to a .swf file directly, it works ok. So somewhere something is wrong, but I've no idea where or what.

Anyone an idea ??

Reproducible: Always
Steps to Reproduce:
Comment 1 John Croisant 2004-07-07 15:42:16 UTC
I have the same problem, except I don't get the error message. The page loads, but the space where the flash should be is missing. about:plugins lists "Shockwave Flash" as usual. As noted by the original poster, loading the .swf file directly displays it correctly (it fills the whole window, of course).

I have tried re-emerging firefox, netscape-flash, and even gtk+. I have tried emerging older versions of netscape-flash (ones that worked for me before) and gtk+. I haven't yet tried older versions of firefox, as it takes quite a long time to compile them, although that's probably where the problem is located (I believe the problem started after upgrading to 0.9.1).

-Jacius
Comment 2 John Croisant 2004-07-07 19:02:19 UTC
I tried Firefox 0.8, and it works like it should (embedded flash is displayed). I'm emerging 0.9-r1 right now, to see if it works too.
Comment 3 John Croisant 2004-07-07 20:01:13 UTC
Firefox 0.9-r1 does not work. So, it appears something changed between 0.8 and 0.9 that broke this. I assume that not everyone is having this problem, or there would probably be more posts here.
Comment 4 Sanderfox 2004-07-08 05:18:02 UTC
I agree :)

Ok, thanks for your replies :) I hope this problem wil be fixed in the r2 release...cause I really hate this ;)
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-08-06 05:16:14 UTC
Could you provide an URL that demonstrates the failure?
Comment 6 Sanderfox 2004-08-06 08:23:07 UTC
A Dutch site: http://www.mycom.nl

It's the site of a computer store, in the middle is a big flash thing, nut that doesn't work for me, cause it's embed.
Comment 7 John Croisant 2004-08-28 17:54:55 UTC
I think the bug has something to do with the presence of settings from old versions. I created a new user for the purpose of loading a web page with flash on it, to see if it worked. To my surprise, it did work! This new user had aboslutely no settings from other apps or previous versions of Firefox (he barely even had a .bash_history).

I'm not sure what the details on the settings are, but I'm going to do more tests.
Comment 8 John Croisant 2004-08-28 18:57:48 UTC
I think I've solved the problem! (at least, I have on my computer!)

I changed ~/.mozilla/firefox/default.grc/chrome/userContent.css to comment out the line:

{ -moz-binding: url("chrome://flashblock/content/flash.xml#obj"); }

It should be removed or have the comment characters '/*' and '*/' (without the single quotes) put around it.

This line was perhaps added by the "click Flash to play" extension of previous versions, which would not render embedded flash files until you clicked on them.

Commenting out/removing this line has entirely resolved the issue for me!
Comment 9 John Croisant 2004-08-28 19:04:00 UTC
Heh, I was so excited that I fixed it that I failed to notice the obvious. The entire contents of the userContent.css file (about which I just posted) make the issue even clearer (text is between lines of =, added by me):

================================================================

/*
 * Flash Click to View by Ted Mielczarek (luser_mozilla@perilith.com)
 * Original code by Jesse Ruderman (jruderman@hmc.edu)
 * taken from http://www.squarefree.com/userstyles/xbl.html
 *
 * Change XBL binding for <object> tags, click to view flash
 *
 * Doesn't work for <embed> tags, which are less common than <object> tags - bug 190970 
 */
object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"]
{ -moz-binding: url("chrome://flashblock/content/flash.xml#obj"); }

================================================================

Note that this was the entire file contents for me (maybe not for others, though). Just removing the userContent.css file will also work to fix the problem.

Perhaps a warning should be added to the mozilla-firefox ebuild, so users can know to edit/remove this file when upgrading from before 0.9?
Comment 10 Sanderfox 2004-08-29 03:03:37 UTC
I don't even have a ~/.mozilla/firefox/<profile name>/chrome/userContent.css :S

I still only have the example files :S

Weird....
Comment 11 Will Lepofsky 2004-11-04 12:02:58 UTC
I don't know if my situation is exactly related, but here goes:

With the site of www.mastermindsadvertising.com, a company that I work for, I only see about 1/3 of the flash display.  Upon further investigation, I discovered that it has to do with the <object> and <embed> tags in association with the <table> tag.  Specifically with the width and height parameters.  If I remove the <table> and related tags the problem goes away.  If I leave the <table> tags in with no changes to original values and change the width parameter from 100% to 800 for both the <object> and <embed> tags, the problem goes away.  If I change the width of the table to 800 and make no change to the original values of the <object> and <embed> tags, the problem persists.

This also happens with jibjab.com in their ANIMATION section.  I looked at the source and the <object> and <embed> tags width uses percentages like mastermindsadvertising.com.  I'm sure there are other examples out their, but these are the only two sites that I have visited with this setup.

As to the site of www.mycom.nl, I didn't experience any problems with it.  I also looked at the source of the page and for the <object> and <embed> tags, they don't use percentages.

Note, this is with Mozilla-1.7.3 and Firefox-1.0_rc1(and 1.0_pre-r1), whether compiled or bin packages, on Linux with netscape-flash-6.0.81(and 7.0.25).  I also tried a new user account, but that didn't work either.  I did notice his problem doesn't happen with the named versions under MS Windows.

This leads me to belive that the problem lies within the interpretation of percentages for the width and height parameters of the <object> and <embed> tags when used in conjuction with tables, at least for what I have tested, in Mozilla and Firefox on Linux.  I don't know if this happens on other distributions of Linux because I only use Gentoo (at home and work).

If you need more information, just let me know.  If this does not apply to this problem, please let me know, and I will fill out a new bug report.
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2004-11-13 16:26:47 UTC
I'm not seeing this problem with mozilla-firefox-1.0-r1 and netscape-flash-7.0.25.  I'm guessing the problem was fixed in the intervening versions.  Please re-open if it's still a problem for you.
Comment 13 Sanderfox 2004-11-14 03:09:44 UTC
I'm using FF 1.0 (final) atm, but I sill have the problem....
Comment 14 Nick Jones 2004-12-21 12:30:53 UTC
Using Firefox 1.0 and tried both flash 6.x and 7.x and still have the problem.
Comment 15 Sanderfox 2004-12-21 12:57:22 UTC
I solved it :)

I emptied _all_ the mozilla/firefox plugin directories (ofcouse make a backup), and installed the plugins again, one by one. This solved it for me. I think I just never thought about cleaning the plugin dirs...
Comment 16 Will Lepofsky 2005-01-04 11:19:57 UTC
After a fresh install of Gentoo, I'm still experiencing my problem.  But, I found where the problem lies, with the default enabling of GTK2.

After some hacking of the eclass file, changing gtk2 to gtk, and ln -s libIDL-config-2 libIDL-config in the /usr/bin directory,  I was able to view flash properly again. So the problem seems to lie with firefox and GTK2.  Would this be an upstream problem?  Another question would be, why was the GTK use variable removed from the firefox ebuild?
Comment 17 Christoph Linder 2006-04-11 11:51:46 UTC
(In reply to comment #1)
> I have the same problem, except I don't get the error message. The page loads,
> but the space where the flash should be is missing. about:plugins lists
> "Shockwave Flash" as usual. As noted by the original poster, loading the .swf
> file directly displays it correctly (it fills the whole window, of course).
> 

Had the same problem when I installed the 'Amazing Media Browser' extension. It's got an option to 'Block all Embedded Objects'. 

Disable and have fun.