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

Issue 2506793002: MD Settings: Fix Back navigation from section route to BASIC route. (Closed)

Created:
4 years, 1 month ago by tommycli
Modified:
4 years, 1 month ago
Reviewers:
Dan Beam
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix Back navigation from section route to BASIC route. Currently, there is this problem: 1. Open MD Settings. 2. Open left menu and click on a section route. 3. Observe that the window has scrolled to the section. 4. Click the browser Back button. 5. Observe that the window remains scrolled to the section. This CL fixes that bug and adds a test. BUG=664070 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/7e0c0949788eca92a82112f1a2786f910f68de8b Cr-Commit-Position: refs/heads/master@{#432549}

Patch Set 1 #

Patch Set 2 : removes some excess stuff #

Total comments: 2

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M chrome/browser/resources/settings/settings_page/main_page_behavior.js View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/basic_page_browsertest.js View 1 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
tommycli
Dbeam: PTAL thanks!
4 years, 1 month ago (2016-11-16 02:25:24 UTC) #9
Dan Beam
https://codereview.chromium.org/2506793002/diff/20001/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2506793002/diff/20001/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode35 chrome/browser/resources/settings/settings_page/main_page_behavior.js:35: this.scroller.scrollTop = 0; do we still want to execute ...
4 years, 1 month ago (2016-11-16 02:32:02 UTC) #10
tommycli
dbeam: thanks! https://codereview.chromium.org/2506793002/diff/20001/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2506793002/diff/20001/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode35 chrome/browser/resources/settings/settings_page/main_page_behavior.js:35: this.scroller.scrollTop = 0; On 2016/11/16 02:32:01, Dan ...
4 years, 1 month ago (2016-11-16 16:39:02 UTC) #12
Dan Beam
lgtm
4 years, 1 month ago (2016-11-16 17:09:46 UTC) #14
tommycli
thanks!
4 years, 1 month ago (2016-11-16 17:24:26 UTC) #17
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/2506793002/40001
4 years, 1 month ago (2016-11-16 17:24:37 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-16 17:59:47 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 18:20:05 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7e0c0949788eca92a82112f1a2786f910f68de8b
Cr-Commit-Position: refs/heads/master@{#432549}

Powered by Google App Engine
This is Rietveld 408576698