Bug 175009

Summary: REGRESSION (r217197): New Yorker website hangs for a long time on load, lots of blank tiles
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, jmarcell, mcatanzaro, simon.fraser, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description zalan 2017-07-31 20:59:51 PDT
rdar://problem/33505791
Comment 1 zalan 2017-07-31 21:08:49 PDT
Created attachment 316831 [details]
Patch
Comment 2 Simon Fraser (smfr) 2017-08-01 12:59:01 PDT
Comment on attachment 316831 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=316831&action=review

> Source/WebCore/ChangeLog:9
> +        This patch ensures that we report the desktop, non-frame-flattened frame size for media queries.

"for media queries in subframes"

> Source/WebCore/ChangeLog:11
> +        Some websites don't expect the iframes to be expanded and their media query callbacks code
> +        result in never ending layouts. 

I think you should say a little more here about what the site was doing (MQ listener changing content, triggering resize across the MQ boundary).

> Source/WebCore/page/FrameView.cpp:-1387
> -

i want this one

> Source/WebCore/page/FrameView.cpp:5415
> +    if (isFrameFlatteningValidForThisFrame() && !m_frameFlatteningViewSizeForMediaQuery)
> +        m_frameFlatteningViewSizeForMediaQuery = ScrollView::layoutSize();

Maybe do this somewhere you know you are already in a flattened frame layout.

> LayoutTests/ChangeLog:11
> +        * fast/frames/flattening/media-query-growing-content-expected.txt: Added.
> +        * fast/frames/flattening/media-query-growing-content.html: Added.
> +        * fast/frames/flattening/resources/media-query-min-height-with-flattening.html: Added.

Please also test aspect-ratio and orientation media queries.
Comment 3 zalan 2017-08-01 13:35:44 PDT
Created attachment 316888 [details]
Patch
Comment 4 WebKit Commit Bot 2017-08-01 14:42:32 PDT
Comment on attachment 316888 [details]
Patch

Clearing flags on attachment: 316888

Committed r220112: <http://trac.webkit.org/changeset/220112>
Comment 5 WebKit Commit Bot 2017-08-01 14:42:34 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Michael Catanzaro 2018-02-15 17:46:19 PST
Hi Jason, why has r220112 been reverted on the safari-604 and safari-605 branches, but not on trunk? Is there some regression that's somehow specific to those branches...?
Comment 7 Jason Marcell 2018-02-15 19:23:58 PST
Michael, I have asked Alan to comment.
Comment 8 zalan 2018-02-15 21:31:37 PST
(In reply to Michael Catanzaro from comment #6)
> Hi Jason, why has r220112 been reverted on the safari-604 and safari-605
> branches, but not on trunk? Is there some regression that's somehow specific
> to those branches...?
See bug 182859, we are trying to fix it properly on trunk now.