Closed Bug 429428 Opened 17 years ago Closed 15 years ago

Changing css position on flash embed parent causes flash to reload

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 90268

People

(Reporter: soconnor.work, Unassigned)

Details

(Keywords: testcase, Whiteboard: WONTFIX?)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5 Build Identifier: We were trying to develop a floating toolbar where it would be position static on page load, then after scrolling past a certain post the div toolbar would change to position: fixed. If the toolbar contains any <embed> or <object> with a swf it would cause the browser to refetch / reload the flash movie. It looks like if any parent node's position is changed (from anything to anything - static -> fixed, fixed -> absolute, etc) the flash movie would reload. Reproducible: Always Here is a test case: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </head> <body> <div id="movie"> <object width="425" height="355"> <param name="movie" value="http://www.youtube.com/v/3XGJq8wrw5I&hl=en"></param> <param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/3XGJq8wrw5I&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed> </object> </div> <form> <input type="button" name="change" value="Change" onclick="document.getElementById('movie').style.position='absolute';" /> </form> </body> </html>
Severity: normal → minor
Component: Layout → Plug-ins
Keywords: testcase
QA Contact: layout → plugins
Séamus, we have fixed a number of plugin-related bugs recently, does the problem still occur in a recent Firefox trunk build? http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ If not, please resolve this bug report as worksforme. Thanks.
I can't test trunk right now, but I did just test FF3 RC 1 and it is still present. It is more noticeable in the test case above if you start playing the youtube video then click the change button. Watch it reload the video starting it back to the 'click to play' screen.
Changing 'style.position' causes the internal layout data for that element to be recreated so I'm not sure this will ever be fixed. Maybe you can work around it by having position='fixed' initially together with top='auto' and left='auto'? That should position it at the same place it would have with position='static'.
Whiteboard: WONTFIX?
That work around might work in certain situations but unfortunately not ours. Setting the position to 'fixed' initially renders the object in the same position it would be rendered in if it was 'static', but it is still out of flow and therefore any elements below that element would end up underneath. Is there a special case that could be made for plugins during a reflow? Would someone like to make this bug as confirmed? I don't know enough of bugzilla etiquette to know what to do with this bug now.
Duplicate of bug 90268 ?
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: