Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Issue 2658063002: FrameView: Don't throttle display:none frames (Closed)

Created:
3 years, 11 months ago by Sami
Modified:
3 years, 10 months ago
Reviewers:
pdr., esprehn
CC:
blink-reviews, chromium-reviews, kinuko+watch, Xianzhu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FrameView: Don't throttle display:none frames While migrating to use IntersectionObserver to control frame throttling we accidentally also started throttling display:none frames (which IObs. considers invisible). This is not safe because many sites use such frames for driving UI logic. This patch disallows throttling for display:none frames. The revised logic also matches the frame throttling implementation in Safari. BUG=680925 TEST=Open the login popup twice on http://www.espn.in/ and observe no delay. Review-Url: https://codereview.chromium.org/2658063002 Cr-Commit-Position: refs/heads/master@{#446419} Committed: https://chromium.googlesource.com/chromium/src/+/02d1c14d47b948cf6b4eb49c3b4cef697525f03e

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -3 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 2 chunks +12 lines, -3 lines 2 comments Download
M third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Sami
3 years, 11 months ago (2017-01-26 15:18:36 UTC) #6
pdr.
LGTM +cc wangxianzhu just fyi
3 years, 10 months ago (2017-01-26 19:32:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2658063002/1
3 years, 10 months ago (2017-01-26 19:41:22 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/02d1c14d47b948cf6b4eb49c3b4cef697525f03e
3 years, 10 months ago (2017-01-26 20:08:40 UTC) #13
esprehn
https://codereview.chromium.org/2658063002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2658063002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4648 third_party/WebKit/Source/core/frame/FrameView.cpp:4648: updateRenderThrottlingStatus(m_hiddenForThrottling, m_subtreeThrottled); This introduces an entire frame tree walk ...
3 years, 10 months ago (2017-02-14 00:05:22 UTC) #15
Sami
3 years, 10 months ago (2017-02-21 12:34:04 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2658063002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/frame/FrameView.cpp (right):

https://codereview.chromium.org/2658063002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/frame/FrameView.cpp:4648:
updateRenderThrottlingStatus(m_hiddenForThrottling, m_subtreeThrottled);
On 2017/02/14 00:05:21, esprehn wrote:
> This introduces an entire frame tree walk down here, which is redundant with
the
> frame tree walk that's happening on the following lines.

Well spotted -- fix here: https://codereview.chromium.org/2706193003/

Powered by Google App Engine
This is Rietveld 408576698