New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 629697 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocking:
issue 630505



Sign in to add a comment

MD Settings: routing to/from Advanced page broken, has extra state

Project Member Reported by michae...@chromium.org, Jul 20 2016

Issue description

as of 39c8887a5d0201f6ac08ad9902f1b5219d8fea22

1. chrome://md-settings
2. click Advanced toggly button thingy
3. navigate Back

Expected: URL changes to chrome://md-settings. Advanced closes maybe?
Actual: nothing happens, but we do go back a state (the Forward button becomes available)

4. navigate Back

Expected: URL changes to chrome://md-settings. Advanced closes maybe?
Actual: URL changes to chrome://md-settings but Advanced doesn't close, nor do we don't scroll up.



What steps will reproduce the problem?
(1)
(2)
(3)

What is the expected output?

What do you see instead?


Please use labels and text to provide additional information.

 
Cc: dschuyler@chromium.org
Labels: OS-All
this happens because currentRoute is set twice to {page: 'advanced', section: '', subpage: []}

once in settings_menu.js: openPage_()
then again in settings_main.js: toggle-advanced-page handler in attached()

I suspect deciding on how to handle Advanced and making the necessary changes will fix this bug so I wouldn't recommend picking it up tomorrow.
Blocking: 630505

Comment 3 by dbeam@chromium.org, Jul 25 2016

Cc: dbeam@chromium.org
so wait, if we're dropping /advanced, there should be no navigations and therefore going back wouldn't have this issue (because we're not really considering toggling more sections a "navigation").

right?
I would be in favor of dropping /advanced.

It would require introducing a helper method called something like isRouteInAdvanced to be used by both settings-menu and settings-page. In some ways however, that's basically a "virtual route" which we were trying to avoid.

I dropped the topic after Dave advised just not spending any more time on it.
I'm down to drop /advanced as a part of the route.
Labels: Hotlist-MD-Settings-Navigation
Status: Available (was: Untriaged)
Status: Fixed (was: Available)

Sign in to add a comment