Bug 19011

Summary: Webkit renders EMBED fallback content instead of OBJECT content
Product: WebKit Reporter: jasneet <jasneet>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aestes, ahmad.saleem792, jasneet, lanouvellechair, webkit
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://musique.3suisses.fr/
Attachments:
Description Flags
screenshot
none
reduction
none
reduction
none
even reduced test case none

Description jasneet 2008-05-12 09:58:18 PDT
I Steps:
Go to 
http://musique.3suisses.fr/

II Issue:
the player at the top center column has red colored control buttons. IE/FF/Opera have black colored control buttons.

III Conclusion:
Issue is due to :
<param value="bgcolor1=EAEDF2&bgcolor2=14353c&buttoncolor=000000&buttonovercolor=000000&slidercolor1=000000&slidercolor2=000000&sliderovercolor=000000&textcolor=0&showstop=1&showinfo=0&showvolume=1" name="FlashVars"/>
<embed width="100%" height="20" flashvars="bgcolor1=EAEDF2&bgcolor2=14353c&buttoncolor=733b35&buttonovercolor=0&slidercolor1=733b35&slidercolor2=de1a16&sliderovercolor=733b35&textcolor=0&showstop=1&showinfo=0&showvolume=1" wmode="transparent" src="player_mp3_maxi.swf"/>

param and embed have different colors defined for play/pause volume stop buttons.
IE/FF/Opera display color defined in param element where as Safari displays color defined in embed tag

IV Other browsers:
IE7: ok
FF3: ok
Opera9.24: ok

V Nightly tested: 32871
Comment 1 jasneet 2008-05-12 09:58:36 PDT
Created attachment 21085 [details]
screenshot
Comment 2 jasneet 2008-05-12 09:59:00 PDT
Created attachment 21086 [details]
reduction
Comment 3 jasneet 2008-05-12 10:05:10 PDT
Created attachment 21087 [details]
reduction
Comment 4 Robert Blaut 2008-06-02 05:03:05 PDT
I can confirm the bug. It looks like Webkit violates "Rules for rendering objects":

"A user agent must interpret an OBJECT element according to the following precedence rules:
1. The user agent must first try to render the object. It should not render the element's contents, [...].
2. If the user agent is not able to render the object for whatever reason (configured not to, lack of resources, wrong architecture, etc.), it must try to render its contents." [http://www.w3.org/TR/html401/struct/objects.html#h-13.3.1]

WebKit actually incorrectly renders fall back EMBED content instead of OBJECT content which is of cause which is available for rendering. 
Comment 5 Robert Blaut 2008-06-02 05:03:41 PDT
Created attachment 21459 [details]
even reduced test case
Comment 6 Robert Blaut 2008-07-28 12:11:58 PDT
*** Bug 17690 has been marked as a duplicate of this bug. ***
Comment 7 Ahmad Saleem 2023-05-05 14:10:15 PDT
Loading 'even reduced test case' in Safari 16.4 shows 'broken image' icon while Chrome Canary 115, I have ruffle extension (Flash in Rust Emulator) and it shows that Ruffle is not able to run this. While Firefox Nightly 114 does not render anything like broken image or embedded flash etc.