Closed Bug 310488 Opened 19 years ago Closed 14 years ago

Flash is unvisible when it is dynamically inserted into a page with designMode set to ON

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: andreim, Unassigned)

References

Details

(Whiteboard: [CLOSEME 5-15-2010])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

When creating and inserting OBJECT for flash with JavaScript when document's
designMode is ON, flash is not visible, although its HTML code is actually
inserted. The sutuation is the same when new innerHTML containg OBJECT code is
assigned to an element, like DIV. When designMode is OFF, flash is inserted and
displayed as expected.

Reproducible: Always

Steps to Reproduce:
1. Create new OBJECT element with "createElement()" JavaScript method.
2. Populate all necessary attributes (type, data, pluginspage, width, height,
etc.) of the OBJECT with "setAttribute()" JavaScript method.
3. Insert the OBJECT to a page with "appendChild()" or "insertBefore()"
JavaScript methods.
Actual Results:  
FLASH is not visible

Expected Results:  
display FLASH
Can we have a simple testcase?
Summary: Flash is unvisible when it is dynamically inserted into a page with designMode set to ON → Flash is unvisible when it is dynamically inserted into a page with designMode set to ON
Just to check I understand this correctly, for the testcase:

-With designMode off, pressing the Add Flash button adds a blue animation in the
yellow Frame.

-With design mode on, nothing happens in the yellow frame when you press Add Flash.
(In reply to comment #3) 
You understand it correctly. With designMode off, pressing the Add Flash button 
adds a blue animation in the yellow Frame. With design mode on, nothing happens 
in the yellow frame when you press Add Flash, however new HTML code is actually 
added to the Frame code, which can be evident in TEXTAREA. 
I confirm this BUG is there !

1. Create new OBJECT element with "createElement()" JavaScript method.
2. Populate all necessary attributes (type, data, pluginspage, width, height,
etc.) of the OBJECT with "setAttribute()" JavaScript method.
3. Insert the OBJECT to a page with "appendChild()" or "insertBefore()"

The CODE is added to the page but FLASH is not visible !!!!!!!!!!!!!!
Please do something with this.
Opera is working perfect, even IE is working ok !
This is very important for WYSIWYG editors !


Blocks: 424615
This bug is not limited to Flash content, it applies for any object tag used in design mode (contenteditable).
The object tags are not rendered in design mode, instead the alternate content is shown. The test case attached above does not use any alternate content and therefore nothing is rendered.

If you would insert
<object data="image.png">There should be an image.</object>
the text was shown instead of the image.
When one is using the same code outside a design mode element, the image will be shown.

I tested this on Firefox 3 on Ubuntu 8.04.
this bug is blocker to most of wysiwyg editors and is 4 years old!
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 5-15-2010]
Version: unspecified → 1.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.3 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
No reply, INCOMPLETE. Please retest with Firefox 3.6.3 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
The problem still exists in Firefox 4.0.1 and can be easily reproduced with attached example.
This problem can still be reproduced in FF 6 on Windows 7. It limits seriously the development of WYSIWYG editors.
This problem can be reproduced in Firefox 13.01, six years (and change) later. I've reduced it here: http://jsfiddle.net/samuelcole/6Te5C/2/
This problem can be reproduced in Firefox 13.01, six years (and change) later. I've reduced it here: http://jsfiddle.net/samuelcole/6Te5C/5/
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: