Regression: In chrome://md-settings, unnecessary Move up and Move down options are given for first and last language in Language section.
Reported by
lpa...@etouch.net,
Jan 18 2017
|
||||||
Issue descriptionChrome Version: 57.0.2984.0 (Official Build) canary a2377c097a1fa051f90f9c02d96d010073fcb701-refs/heads/master@{#443964} (32/64-bit) OS: Windows (7,8,10), Mac (10.11.6,10.12.1), Linux (14.04 LTS) What steps will reproduce the problem? 1) Launch chrome, navigate to chrome://md-settings, scroll down the page and click on Advanced. 2) Under Languages, click on Language dropdown and then click on iron icon for first option and select ‘Move up’. 3) Now click on iron icon for last language and select ‘Move down’ and observe. Unnecessary Move up and Move down options are given for first and last language respectively (As nothing happens on clicking). Move up and Move down options should be disabled for first and last languages respectively. This is a Regression issue broken in M-57, will soon update other info Manual bisect: Good build: 57.0.2950.0 Bad build: 57.0.2951.0
,
Jan 31 2017
I can take this, it should be a simple fix. Not a P1.
,
Feb 1 2017
I see what the problem is. I can tackle it tomorrow, if you don't mind. I also should have added a test for this and the Move to Top behavior.
,
Feb 1 2017
Sounds good, cheers.
,
Feb 1 2017
,
Feb 1 2017
,
Feb 2 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4fed887018309685829be2b323c799ff1bf13c60 commit 4fed887018309685829be2b323c799ff1bf13c60 Author: michaelpg <michaelpg@chromium.org> Date: Thu Feb 02 20:57:19 2017 Language settings: Fix unnecessarily shown move buttons Each language in the list of enabled languages has a detail menu with options like "move up" and "move down". Obviously some options should be hidden, e.g. the top language's detail menu should not show "move up" or "move to top". This was broken by me in crrev.com/2573643005. Fix by comparing the Language object, whose identity never changes for a given language. The breakage happened because the LanguageState object being compared was now being copied to a new object. In the future we should simplify language settings by flattening the Language structure into the LanguageState structure instead of having "language.language" be a thing. BUG= 682120 R=stevenjb@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2675453002 Cr-Commit-Position: refs/heads/master@{#447837} [modify] https://crrev.com/4fed887018309685829be2b323c799ff1bf13c60/chrome/browser/resources/settings/languages_page/languages_page.html [modify] https://crrev.com/4fed887018309685829be2b323c799ff1bf13c60/chrome/browser/resources/settings/languages_page/languages_page.js [modify] https://crrev.com/4fed887018309685829be2b323c799ff1bf13c60/chrome/test/data/webui/settings/languages_page_browsertest.js
,
Feb 3 2017
,
Feb 10 2017
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by hdodda@chromium.org
, Jan 18 2017Labels: hasbisect-per-revision
Owner: michae...@chromium.org
Status: Assigned (was: Unconfirmed)