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

Issue 2259163002: MD Settings: Fix scrolling bugs and hacks caused by undefined load behavior (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 2 months ago
Reviewers:
dschuyler
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@TransitionsNoTestsFakeRebase
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix scrolling bugs and hacks caused by undefined load behavior Imports in <body> cause undefined behavior: crbug.com/638074 We have a bunch of hacks to try to avoid doing things with an invalid DOM. Instead of these hacks, sidestep the problem by moving the i18n import to <head> (yeah, this probably breaks i18n-foo in <body>). The code is less haphazard now, but still a minefield because: * Basic and Advanced attempt to control the scroller simultaneously * settings-main updates the overscroll with no regard for section transitions * settings-main eagerly removes overscroll on "scroll" events, but can't differentiate between user scrolls and Basic/Advanced-initiated scrolls BUG=637508, 537359, 589681 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/6dabb5a5dcefa2d2a775bd5abdf64f87e8aa2621 Cr-Commit-Position: refs/heads/master@{#422625}

Patch Set 1 #

Patch Set 2 : bug fixes #

Total comments: 3

Patch Set 3 : Update #

Patch Set 4 : rebase on pending overscroll CL #

Patch Set 5 : Switching pages #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -40 lines) Patch
M chrome/browser/resources/settings/settings.html View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.html View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/main_page_behavior.js View 1 2 3 4 5 2 chunks +5 lines, -36 lines 0 comments Download
M chrome/test/data/webui/settings/about_page_tests.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
michaelpg
Can you please take a preliminary look? This ensures that we don't actually start querying ...
4 years, 4 months ago (2016-08-19 04:40:45 UTC) #4
dschuyler
https://codereview.chromium.org/2259163002/diff/20001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2259163002/diff/20001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode107 chrome/browser/resources/settings/settings_main/settings_main.js:107: setTimeout(function() { On 2016/08/19 04:40:45, michaelpg wrote: > I ...
4 years, 4 months ago (2016-08-23 02:09:50 UTC) #5
michaelpg
PTAL -- was able to simplify after dpapad's CL. This fixes scrolling to section on ...
4 years, 2 months ago (2016-09-29 01:12:48 UTC) #6
dschuyler
On 2016/09/29 01:12:48, michaelpg wrote: > PTAL -- was able to simplify after dpapad's CL. ...
4 years, 2 months ago (2016-09-29 22:23:55 UTC) #11
dschuyler
On 2016/09/29 22:23:55, dschuyler wrote: > On 2016/09/29 01:12:48, michaelpg wrote: > > PTAL -- ...
4 years, 2 months ago (2016-09-29 22:26:08 UTC) #12
michaelpg
On 2016/09/29 22:23:55, dschuyler wrote: > On 2016/09/29 01:12:48, michaelpg wrote: > > PTAL -- ...
4 years, 2 months ago (2016-09-30 02:04:18 UTC) #13
dschuyler
If CL 2312423003 lands first, LGTM.
4 years, 2 months ago (2016-10-01 00:37:51 UTC) #14
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/2259163002/100001
4 years, 2 months ago (2016-10-03 22:55:22 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-04 00:27:51 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 00:29:38 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6dabb5a5dcefa2d2a775bd5abdf64f87e8aa2621
Cr-Commit-Position: refs/heads/master@{#422625}

Powered by Google App Engine
This is Rietveld 408576698