Problem with Flash and Firefox 3

Author Message

Richard Lundberg

Tuesday 18 November 2008 7:07:13 am

Is anybody experiencing problems with Flash in Firefox 3? I have several sites that use flash banners, these have been fine in Firefox 2 and IE up to now, but in Firefox 3 and the very latest IE7 release, there is just a white box where the banner should be.

It is nothing to do with the flash plugin not being available as embedded videos from YouTube etc still display OK. I am having difficulty tracking down the offending code and wondered if anyone else had this problem

www.peakm3.com

Richard Lundberg

Tuesday 18 November 2008 7:29:34 am

Update

From testing so far, it appears that Firefox 3 does not like ezpublish URLs.
With exactly the same code the downloaded flash banner at

index.php/eng/content/download/170/1022/banners.swf

does not display,

but if I download the same banner to the root folder and reference it directly, all is OK

www.peakm3.com

Patrick Kaiser

Tuesday 18 November 2008 8:16:59 am

Seems that this is a flash player 10 issue (see: http://issues.ez.no/IssueView.php?Id=13783 and http://ez.no/developer/forum/general/flash_player_10_swf_files_ez_publish_4_problem ). Flash player 10 doesnt like content-disposition attachment header anymore, theese headers are sent if the files are delivered via content/download/..

A solution is to either apply the patch in the issue tracker or to ovverride the flash-template and use the real-url of the swf instead of content/download..


Best regards,

Patrick

Richard Lundberg

Tuesday 18 November 2008 9:40:35 am

Hi,

thanks for the quick reply. I installed the patch without success.

I checked the flash version I was running in all the other browsers that work fine (Sea monkey, IE7 and Opera) and it is 10,0,12,36. So it apprears to work with flash version 10 in other browsers??

www.peakm3.com

Richard Lundberg

Tuesday 18 November 2008 9:47:39 am

<UPDATE>

The patch actually stopped flash working in IE7 and Sea Monkey, which had worked previously. After desinstalling the patch, these again worked.

www.peakm3.com

Patrick Kaiser

Tuesday 18 November 2008 10:03:11 am

are you sure your other browsers had flash 10 plugin installed?
Actually flash player 10 should behave the same in all browsers on all platforms (its a new security feature ;-) they implemented a lot of very restrictive stuff in 10.x). See: http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html

I also had problems with the patch, try to only add the following line

// FIX flash 10
if( $mimeType == 'application/x-shockwave-flash' )
{
    $dispositionType = 'inline';
}

just before this line (arround line 90)

header( "Content-disposition: $dispositionType; filename=\"$originalFileName\"" );

This worked for me, although I dont like these kernel modifications. Again, a much better and cleaner solution would be to override the template and replace the content/download part with the direct url of the swf. Than your webserver will serve the file directly.


Best regards,

Patrick

André R.

Tuesday 18 November 2008 10:15:17 am

It would be more helpful if you post the feedback to the patch in the issue tracker.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Patrick Kaiser

Tuesday 18 November 2008 10:44:49 am

you are definitely right, I will do so after investigation why the patch doesnt work for me (didnt find the time for that yet). Obviously the function dispositionType returns "attachment", so the problem must be either there or in my file.ini ..

Anyway thanks for the patch ;-)


Best regards,

Patrick

Richard Lundberg

Tuesday 18 November 2008 3:54:09 pm

This fix

http://issues.ez.no/IssueView.php?Id=13947&

worked better with the modifications I have detailed in the thread.

www.peakm3.com

Piotrek Karaś

Tuesday 18 November 2008 8:18:47 pm

Hi guys,

I'm not sure if this is relevant, but apart from the latest flash attachment disposition fix, we've experienced some problems with the new SWFObject 2.0. It appeared to be even a greater problem, and we had to switch to 1.5, which brought back stability.

I haven't investigated this too much, but maybe someone has more information or maybe this will solve your problems, as well.

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.