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

Issue 2290173004: Add some basic sanity tests to RootScroller for cases with remote frames. (Closed)

Created:
4 years, 3 months ago by bokan
Modified:
4 years, 3 months ago
Reviewers:
lfg
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add some basic sanity tests to RootScroller for cases with remote frames. Added one test that deals with a remote iframe and another with a remote main frame. RootScroller doesn't quite work in OOPIF scenarios yet but it's still behind a flag so that's ok. These are mostly testing that we don't crash in the normal case and that scrolling works ok. BUG=641775 Committed: https://crrev.com/4e2f14c7363fe96556aff4f1e4ab44906ddbcd67 Cr-Commit-Position: refs/heads/master@{#416364}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use localFrame->frameWidget() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -66 lines) Patch
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 1 11 chunks +187 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/root-scroller-child.html View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
bokan
Here's some tests. The RemoteMainFrame one fails without the earlier fix I submitted and now ...
4 years, 3 months ago (2016-08-30 20:37:19 UTC) #3
lfg
https://codereview.chromium.org/2290173004/diff/1/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp File third_party/WebKit/Source/web/tests/RootScrollerTest.cpp (right): https://codereview.chromium.org/2290173004/diff/1/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp#newcode709 third_party/WebKit/Source/web/tests/RootScrollerTest.cpp:709: widget = WebFrameWidget::create(&webWidgetClient, localFrame); FrameTestHelpers::createLocalChild() already creates a WebFrameWidget. ...
4 years, 3 months ago (2016-08-31 15:51:19 UTC) #4
bokan
Thanks, ptal https://codereview.chromium.org/2290173004/diff/1/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp File third_party/WebKit/Source/web/tests/RootScrollerTest.cpp (right): https://codereview.chromium.org/2290173004/diff/1/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp#newcode709 third_party/WebKit/Source/web/tests/RootScrollerTest.cpp:709: widget = WebFrameWidget::create(&webWidgetClient, localFrame); On 2016/08/31 15:51:19, ...
4 years, 3 months ago (2016-09-02 20:40:22 UTC) #5
lfg
lgtm
4 years, 3 months ago (2016-09-02 20:58:44 UTC) #6
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/2290173004/20001
4 years, 3 months ago (2016-09-02 20:59:34 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-02 22:12:13 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 22:14:50 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4e2f14c7363fe96556aff4f1e4ab44906ddbcd67
Cr-Commit-Position: refs/heads/master@{#416364}

Powered by Google App Engine
This is Rietveld 408576698