If the author of the content specifically set the iframe size to zero, then the frame should not be resized. eg: <iframe src="/fd/fb/r?v=6_12_0_776292&sId=0" height="0" width="0"></iframe> This issue can be seen on the Bing site.
Created attachment 95545 [details] proposed patch and test case
Comment on attachment 95545 [details] proposed patch and test case The test results should be platform independent (use layoutTestController.dumpAsText()). r- for that. The patch itself looks good. I'm pretty sure we were not flattening zero-sized frames in the past, wonder how that got lost?
The way the test stands today, it clearly shows that the iframe is not flattened as we dump the DOM sizes. Changing to layoutTestController.dumpAsText(), I'll need to use script to grab the element sizes and print them.
Created attachment 95612 [details] Same code patch with updated platform independent test case
Created attachment 95621 [details] Same patch and test cases as before, but this time with a corrected LayoutTests/ChangeLog
Comment on attachment 95621 [details] Same patch and test cases as before, but this time with a corrected LayoutTests/ChangeLog Clearing flags on attachment: 95621 Committed r87853: <http://trac.webkit.org/changeset/87853>
All reviewed patches have been landed. Closing bug.
Revision r87853 cherry-picked into qtwebkit-2.2 with commit 695e84c <http://gitorious.org/webkit/qtwebkit/commit/695e84c>