Bug 61831

Summary: Frame flattening shouldn't be applied to iframes that have a zero size
Product: WebKit Reporter: David Carson <dacarson>
Component: FramesAssignee: David Carson <dacarson>
Status: RESOLVED FIXED    
Severity: Normal CC: ademar, commit-queue, fred.wang, kenneth, simon.fraser, yael
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.bing.com/search?q=javascript&go=&form=QBLH&qs=n&sk=&sc=8-10
Attachments:
Description Flags
proposed patch and test case
koivisto: review-
Same code patch with updated platform independent test case
koivisto: review+
Same patch and test cases as before, but this time with a corrected LayoutTests/ChangeLog none

Description David Carson 2011-05-31 17:58:56 PDT
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&amp;sId=0" height="0" width="0"></iframe>

This issue can be seen on the Bing site.
Comment 1 David Carson 2011-05-31 21:37:28 PDT
Created attachment 95545 [details]
proposed patch and test case
Comment 2 Antti Koivisto 2011-06-01 07:20:12 PDT
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?
Comment 3 David Carson 2011-06-01 07:38:52 PDT
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.
Comment 4 David Carson 2011-06-01 09:24:42 PDT
Created attachment 95612 [details]
Same code patch with updated platform independent test case
Comment 5 David Carson 2011-06-01 10:34:34 PDT
Created attachment 95621 [details]
Same patch and test cases as before, but this time with a corrected LayoutTests/ChangeLog
Comment 6 WebKit Commit Bot 2011-06-01 14:42:55 PDT
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>
Comment 7 WebKit Commit Bot 2011-06-01 14:43:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Ademar Reis 2011-06-02 07:45:43 PDT
Revision r87853 cherry-picked into qtwebkit-2.2 with commit 695e84c <http://gitorious.org/webkit/qtwebkit/commit/695e84c>