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

Issue 2249873003: Settings: Fix Site Details subpage routing (Closed)

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

Description

Settings: Fix Site Details subpage routing Goal is: A site details subpage that's accessible both from /siteSettings/all, /siteSettings/bluetooth, /siteSettings/plugins, etc. (all the categories). Previous way it was done was: Separate route for each category, so there was /siteSettings/all/details, /siteSettings/bluetooth/details, /siteSettings/plugins/details. And it relied on a quirk of how settings-animated-pages used to work to coalesce all those routes to a single card. New way I'm proposing: One single /siteSettings/siteDetails route. But here are some extra needed changes: - settings-animated-pages must slide right / left based on route depth instead of based on .contains() - subpage-back button needs to call window.history.back() whenever there is a previous route, even if the previous route doesn't strictly contain the current route. I think the above two changes are harmless and the new version is overall an improvement. BUG=637865 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/1e19d86e3aaafb89470cbc5b5d8b74695b49f2d6 Cr-Commit-Position: refs/heads/master@{#412605}

Patch Set 1 #

Patch Set 2 : update routing and subpage-back to support site details #

Patch Set 3 : merge origin/master #

Patch Set 4 : fix test #

Total comments: 4

Patch Set 5 : fix comment typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -86 lines) Patch
M chrome/browser/resources/settings/privacy_page/privacy_page.html View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/route.js View 1 2 4 chunks +6 lines, -28 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_animated_pages.js View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_subpage.js View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/site_settings/site_list.js View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_settings_behavior.js View 1 2 1 chunk +0 lines, -38 lines 0 comments Download
M chrome/test/data/webui/settings/route_tests.js View 1 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/test/data/webui/settings/settings_subpage_test.js View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
tommycli
finnur: PTAL. This fixes the Site Details subpage for me. If this fix looks good ...
4 years, 4 months ago (2016-08-16 00:09:41 UTC) #3
Finnur
This is a minor improvement, since it enables the details page again for All Sites, ...
4 years, 4 months ago (2016-08-16 10:32:35 UTC) #8
tommycli
finnur: Okay I (finally) understand what the issue is, and I wrote it up in ...
4 years, 4 months ago (2016-08-16 16:54:35 UTC) #15
michaelpg
> But here are some extra needed changes: > - settings-animated-pages must slide right / ...
4 years, 4 months ago (2016-08-17 00:31:13 UTC) #24
michaelpg
> Goal is: A site details subpage that's accessible both from > /siteSettings/all, /siteSettings/bluetooth, /siteSettings/plugins, ...
4 years, 4 months ago (2016-08-17 00:40:50 UTC) #25
Finnur
From a Site Settings view this LGTM. I've verified this fixes the issue properly (Back ...
4 years, 4 months ago (2016-08-17 11:29:52 UTC) #26
tommycli
Hi michaelpg: Re: deliberate change on subpage-back arrow. Yeah I'm pretty much changing it because ...
4 years, 4 months ago (2016-08-17 16:17:00 UTC) #27
michaelpg
thanks for all the clarification; lgtm assuming "subpage back arrow same as browser back" is ...
4 years, 4 months ago (2016-08-17 18:06:12 UTC) #28
tommycli
On 2016/08/17 18:06:12, michaelpg wrote: > thanks for all the clarification; lgtm assuming "subpage back ...
4 years, 4 months ago (2016-08-17 18:10:59 UTC) #29
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/2249873003/80001
4 years, 4 months ago (2016-08-17 18:11:22 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-17 19:06:21 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 19:08:16 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1e19d86e3aaafb89470cbc5b5d8b74695b49f2d6
Cr-Commit-Position: refs/heads/master@{#412605}

Powered by Google App Engine
This is Rietveld 408576698