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

Issue 1895293002: Test fragment scrolling and history restoration interaction w/ scroll anchoring. (Closed)

Created:
4 years, 8 months ago by ymalik
Modified:
4 years, 7 months ago
Reviewers:
ojan, wkorman, jbroman
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Test fragment scrolling and history restoration interaction w/ scroll anchoring. This CL allows RuntimeEnabledFeatures with the option 'set_from_internals' to be set from Internals. Previously, we could only read whether a feature was enabled. The tests in this CL verify that we do scroll anchoring when a page has a fragment and when doing history restoration. Note that there are no behavioral changes in this CL. BUG=594880, 594879, 537764 Committed: https://crrev.com/5114bd75de8b0e7813df98a6a2c9b43943cd4229 Cr-Commit-Position: refs/heads/master@{#390463}

Patch Set 1 #

Total comments: 6

Patch Set 2 : extend internas api to set runtime enabled features + use testharness.js #

Total comments: 3

Patch Set 3 : Remove resetToConsistentState and conditionally make feature settable #

Total comments: 6

Patch Set 4 : fix broken layout tests #

Patch Set 5 : address review comments #

Total comments: 6

Patch Set 6 : Remove .cpp.tmpl and other review comments #

Messages

Total messages: 42 (13 generated)
ymalik
Spoke to you offline about this. We already do scroll anchoring for fragment scrolling and ...
4 years, 8 months ago (2016-04-18 22:05:25 UTC) #2
ojan
skobes has previously done C++ tests, which conveniently avoids adding internals APIs. See ScrollAnchorTest.cpp. The ...
4 years, 8 months ago (2016-04-19 21:34:24 UTC) #3
ymalik
On 2016/04/19 21:34:24, ojan wrote: > skobes has previously done C++ tests, which conveniently avoids ...
4 years, 8 months ago (2016-04-19 23:07:02 UTC) #4
ojan
On 2016/04/19 at 23:07:02, ymalik wrote: > On 2016/04/19 21:34:24, ojan wrote: > > skobes ...
4 years, 8 months ago (2016-04-22 01:04:14 UTC) #5
ymalik
On 2016/04/22 01:04:14, ojan wrote: > On 2016/04/19 at 23:07:02, ymalik wrote: > > On ...
4 years, 8 months ago (2016-04-22 20:39:52 UTC) #7
ymalik
PTAL :) Extend the internals APIs to allow setting RuntimeEnabledFeatures and use testharness.js in tests ...
4 years, 8 months ago (2016-04-22 20:41:05 UTC) #8
ojan
https://codereview.chromium.org/1895293002/diff/20001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl (right): https://codereview.chromium.org/1895293002/diff/20001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl#newcode21 third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl:21: void InternalRuntimeFlags::resetToConsistentState() This doesn't appear to get called anywhere.
4 years, 8 months ago (2016-04-22 20:48:31 UTC) #9
ymalik
https://codereview.chromium.org/1895293002/diff/20001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl (right): https://codereview.chromium.org/1895293002/diff/20001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl#newcode21 third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl:21: void InternalRuntimeFlags::resetToConsistentState() On 2016/04/22 20:48:31, ojan wrote: > This ...
4 years, 8 months ago (2016-04-22 20:57:19 UTC) #10
ymalik
@ojan, PTAL I removed resetToConsistetState from the the script that generates InternalRuntimeFlags. I also added ...
4 years, 7 months ago (2016-04-26 16:03:21 UTC) #12
ymalik
On 2016/04/26 16:03:21, ymalik1 wrote: > @ojan, PTAL > > I removed resetToConsistetState from the ...
4 years, 7 months ago (2016-04-26 17:28:34 UTC) #14
wkorman
https://codereview.chromium.org/1895293002/diff/40001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl (right): https://codereview.chromium.org/1895293002/diff/40001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl#newcode14 third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl:14: : m_{{standard_features[0].first_lowered_name}}(RuntimeEnabledFeatures::{{standard_features[0].first_lowered_name}}Enabled()) Might be better to do this as ...
4 years, 7 months ago (2016-04-26 19:01:18 UTC) #15
ymalik
@wkoman PTAL :) https://codereview.chromium.org/1895293002/diff/40001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl (right): https://codereview.chromium.org/1895293002/diff/40001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl#newcode14 third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl:14: : m_{{standard_features[0].first_lowered_name}}(RuntimeEnabledFeatures::{{standard_features[0].first_lowered_name}}Enabled()) On 2016/04/26 19:01:18, wkorman ...
4 years, 7 months ago (2016-04-26 20:17:39 UTC) #16
ymalik
@wkoman PTAL :)
4 years, 7 months ago (2016-04-26 20:17:41 UTC) #17
wkorman
lgtm Thanks! Note I don't have OWNERS so unless you have it you'll still need ...
4 years, 7 months ago (2016-04-26 20:43:51 UTC) #18
ojan
Sorry...one last thing. Why do we need to whitelist the things that are settable? Can ...
4 years, 7 months ago (2016-04-26 23:24:07 UTC) #19
wkorman
On 2016/04/26 23:24:07, ojan wrote: > Sorry...one last thing. Why do we need to whitelist ...
4 years, 7 months ago (2016-04-26 23:35:43 UTC) #20
ojan
On 2016/04/26 at 23:35:43, wkorman wrote: > On 2016/04/26 23:24:07, ojan wrote: > > Sorry...one ...
4 years, 7 months ago (2016-04-28 02:16:26 UTC) #21
ojan
lgtm
4 years, 7 months ago (2016-04-28 02:16:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895293002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895293002/80001
4 years, 7 months ago (2016-04-28 02:16:56 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/174445)
4 years, 7 months ago (2016-04-28 02:25:36 UTC) #26
ymalik
+jbroman for Source/platform/RuntimeEnabledFeatures.in
4 years, 7 months ago (2016-04-28 14:14:04 UTC) #28
jbroman
https://codereview.chromium.org/1895293002/diff/80001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl (right): https://codereview.chromium.org/1895293002/diff/80001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl#newcode4 third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl:4: #include "InternalRuntimeFlags.h" full include paths, please (assuming you keep ...
4 years, 7 months ago (2016-04-28 14:24:39 UTC) #29
ymalik
@jbroman PTAL :) https://codereview.chromium.org/1895293002/diff/80001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl (right): https://codereview.chromium.org/1895293002/diff/80001/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl#newcode4 third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.cpp.tmpl:4: #include "InternalRuntimeFlags.h" On 2016/04/28 14:24:39, jbroman ...
4 years, 7 months ago (2016-04-28 15:05:06 UTC) #30
jbroman
lgtm
4 years, 7 months ago (2016-04-28 15:08:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895293002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895293002/100001
4 years, 7 months ago (2016-04-28 15:09:24 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/62015)
4 years, 7 months ago (2016-04-28 17:02:06 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895293002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895293002/100001
4 years, 7 months ago (2016-04-28 19:47:37 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-04-28 20:36:27 UTC) #40
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:20:42 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5114bd75de8b0e7813df98a6a2c9b43943cd4229
Cr-Commit-Position: refs/heads/master@{#390463}

Powered by Google App Engine
This is Rietveld 408576698