Closed Bug 87058 Opened 24 years ago Closed 24 years ago

IFRAME disappears in DOM when setting STYLE=display:none

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 52334
mozilla1.0

People

(Reporter: wgrinfeld, Assigned: jst)

Details

Attachments

(1 file)

in version 9.1 (works in Mozilla 9.0 and NN6.01) In case a JavaScript sets the display style attribute of an IFRAME to 'none', it cannot write into it later after setting display to 'block'.
Attached file testcase1
*** This bug has been marked as a duplicate of 52334 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Summary: IFRAME disappears in DOM when setting STYLE=display:none → IFRAME disappears in DOM when setting STYLE=display:none
Re-opening, this is actually not a dup of bug 52334, as Wolfgang pointed out in private email. The problem that causes this problem is that we cache the value of window.Frame0 (which is the same as window.frames.Frame0) and we end up using that cached value after the display of the iframe has been set back to block, in which case there's a new window for the iframe. Adding: delete window.frames.Frame0; as the first line in function f() works around this problem.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Confirming, and accepting.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Targetting for mozilla1.0
Target Milestone: --- → mozilla1.0
This will actually be fixed by the fix for bug 52334, re-duping. *** This bug has been marked as a duplicate of 52334 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: