Closed Bug 474280 Opened 16 years ago Closed 14 years ago

If you hide an IFRAME containing a PDF document and then show it again, the document is not visible (even though the IFRAME is)

Categories

(Core Graveyard :: Plug-ins, defect)

1.9.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: richard.wiseman, Unassigned)

Details

(Whiteboard: [closeme 2010-04-21])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5

There's not really that much more to add, to be honest.

I've got a very simple document containing an IFRAME, the src of which is a PDF document.  That loads and displays fine.  If I then hide the IFRAME and then show it again, the border of the IFRAME is visible (indicating that the frame is not still hidden) but its contents are not visible.

If the contents are not a PDF document, this problem does not occur.  I've not exercised plug-ins other than the Adobe Acrobat Viewer to see if they suffer the same problem.

Reproducible: Always

Steps to Reproduce:
1. Create a document containing an IFRAME whose src is a PDF document.
2. Hide the IFRAME.
3. Show the IFRAME.
Actual Results:  
The document is no longer visible.

Expected Results:  
The document is visible.
Attached file Test HTML
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → 1.9.0 Branch
I have just experienced this same behavior with an IFRAME that points to a PDF file.  This is in version 3.0.8.

Another problem happens when, even if you do not hide the IFRAME, you set the containing element to not display scrollbars:

    var iframe = document.getElementById("IFrame");
    iframe.parentNode.style.overflow = "hidden";

The contents of the IFRAME disappear (the borders of the IFRAME are still visible).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Please try if you can reproduce with the latest nightly build ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
Whiteboard: [closeme 2010-04-21]
I've downloaded the nightly build but unfortunately I can't get Adobe Reader to display PDF documents in the browser anymore.  I disabled the functionality a while ago and even reinstalling Reader doesn't fix it!
Closing since now after whiteboard closeme date and no confirmation using anything newer than Firefox 3.x.

Please reopen/comment with further info, if you still see this issue with Firefox 3.6.13 or later, with a clean profile and the latest version of the plugin.

If you wish, you can also try to reproduce in Firefox 4 Beta 8 or later:
http://www.mozilla.com/en-US/firefox/all-beta.html
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
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: