iframe height messes up when dynamically set to documents content length using js

UNCONFIRMED
Unassigned

Status

()

Core
Layout: View Rendering
--
major
UNCONFIRMED
11 years ago
2 years ago

People

(Reporter: Ali Hammad Raza, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Well, I have spent the last entire week behind this little piece of code which would first inquire the length of a src document in iframe and set the height of the iframe accordingly. All my attempts have gone in vain.
I would have never guessed if it were a bug or something untill I tried a little tweaking with iframes in iframes and other stuff. As you can see by clicking the link the iframe does indeed lengthen up to document's complete length but firefox refuses to allow the text to take up the full space in the iframe!
This is not an issue with ie or safari. However, it is a huge concern since I would not like to see my favorie browser stuck with this error for years. Try googling and you will see people declaring it as an eternal error in firefox. This issue mainly arises when the src document is a bit heavy. I hope I have posted the issue on the right platform!

Reproducible: Always

Steps to Reproduce:
1.by simply visiting the url above
Actual Results:  
the html doesn't completely take up the iframe space

Comment 1

11 years ago
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010418 Minefield/3.0b3pre

Works fine for me with a Mac trunk build: I can scroll down to the bottom and see "*** END: FULL LICENSE ***".

Interesting hack to hide the fact that most of the content is in an iframe.

Comment 2

11 years ago
Dupe of bug 215055?

On Linux, the page looks correct in Firefox 2.0.0.11 after the initial
layout - there are no visual artifacts at the top of the document.
Visual artifacts appear when I scroll it, but covering the window repairs
them and the text looks correct.
In a trunk build however, the initial rendering at the top of the document
appears correct but if I cover the window it's not repainted correctly,
same as when I scroll it.  The document is essentially unreadable.

On MacOSX, in Firefox 2.0.0.11 I see a large grey area where the main
iframe is.  In a trunk build it looks correct until you resize the window,
then it's clipped at the end.
Assignee: nobody → roc
Component: General → Layout: View Rendering
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → ian
QA Contact: ian → layout.view-rendering

Updated

8 years ago
Summary: iframe height messes up big time when dynamically set to documents content length using js → iframe height messes up when dynamically set to documents content length using js
You need to log in before you can comment on or make changes to this bug.