Forums / Setup & design / Problem with Flash and Firefox 3

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

eZ debug

Timing: Jan 18 2025 19:33:25
Script start
Timing: Jan 18 2025 19:33:25
Module start 'content'
Timing: Jan 18 2025 19:33:26
Module end 'content'
Timing: Jan 18 2025 19:33:26
Script end

Main resources:

Total runtime0.8731 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.7344180.8281
Module start 'content' 0.00510.7275 768.5625723.7344
Module end 'content' 0.73260.1403 1,492.2969348.4609
Script end 0.8729  1,840.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4393210.0002
Check MTime0.00150.1727210.0001
Mysql Total
Database connection0.00070.078510.0007
Mysqli_queries0.765787.69072190.0035
Looping result0.00250.28252170.0000
Template Total0.848797.220.4244
Template load0.00190.219020.0010
Template processing0.846896.984820.4234
Template load and register function0.00010.014710.0001
states
state_id_array0.00090.101810.0009
state_identifier_array0.00090.103120.0005
Override
Cache load0.00170.1940550.0000
Sytem overhead
Fetch class attribute can translate value0.00190.219950.0004
Fetch class attribute name0.00140.1633140.0001
XML
Image XML parsing0.00270.304050.0005
class_abstraction
Instantiating content class attribute0.00000.0050200.0000
General
dbfile0.01091.2500470.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs