New issue
Advanced search Search tips

Issue 858882 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 9
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Replace display-size-slider with cr-slider or settings-slider

Project Member Reported by aee@chromium.org, Jun 29 2018

Issue description

display-size-slider is used in CrOS for display size and some a11y settings. The main difference is the display size slider has a different label style.

If we can add support for this label style in cr-slider or settings-slider, we could remove display-size-slider which would be better for maintenance reasons.

The night-light-slider also uses a similar label style to the display-size-slider. The other difference is the night-light-slider has two knobs. This might be sufficiently different from cr-slider. We should still consider adding a common control like cr-range-slider or see if we can incorporate the functionality into cr-slider.

 
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 28

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/53ecd726c6d4420c25c295c3fafe95fb321f27fa

commit 53ecd726c6d4420c25c295c3fafe95fb321f27fa
Author: Esmael El-Moslimany <aee@chromium.org>
Date: Fri Sep 28 21:58:06 2018

WebUI: cr-slider, differentiate between markers in active and inactive regions

 - Remove paper-slider dependency.
 - Differentiate active/inactive markers based on knob position.
 - Add label support from display-size-slider.
 - Replace display-size-slider with settings-slider.

Bug:  881290 ,  858882 
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: Ib0863f37f5484f146d7cd944af4fe9a13a35ea0a
Reviewed-on: https://chromium-review.googlesource.com/1211805
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Scott Chen <scottchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595228}
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/a11y_page/BUILD.gn
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/a11y_page/tts_subpage.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/a11y_page/tts_subpage.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/controls/settings_slider.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/controls/settings_slider.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/device_page/BUILD.gn
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/device_page/display.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/device_page/display.js
[delete] https://crrev.com/7e8253c958ca8f5105d09468a45155ee8a3053c7/chrome/browser/resources/settings/device_page/display_size_slider.html
[delete] https://crrev.com/7e8253c958ca8f5105d09468a45155ee8a3053c7/chrome/browser/resources/settings/device_page/display_size_slider.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/device_page/keyboard.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/device_page/pointers.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/browser/resources/settings/settings_resources.grd
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/test/data/webui/cr_elements/cr_slider_test.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/test/data/webui/settings/cr_settings_browsertest.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/test/data/webui/settings/device_page_tests.js
[delete] https://crrev.com/7e8253c958ca8f5105d09468a45155ee8a3053c7/chrome/test/data/webui/settings/display_size_slider_test.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/chrome/test/data/webui/settings/settings_slider_tests.js
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/testing/buildbot/filters/webui_polymer2_browser_tests.filter
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/ui/webui/resources/cr_elements/cr_slider/BUILD.gn
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/ui/webui/resources/cr_elements/cr_slider/cr_slider.html
[modify] https://crrev.com/53ecd726c6d4420c25c295c3fafe95fb321f27fa/ui/webui/resources/cr_elements/cr_slider/cr_slider.js

Cc: ovanieva@chromium.org malaykeshav@chromium.org osh...@chromium.org
Labels: -Pri-3 ReleaseBlock-Dev M-71 OS-Chrome Pri-1
Owner: aee@chromium.org
Status: Assigned (was: Untriaged)
This change broke the display size slider.
The setting updates the display size as soon as the slider is dragged, instead of waiting for a mouse/touch release. This makes it unusable.
Actual.webm
1.4 MB View Download
Expected.webm
550 KB View Download
Please ensure to re-add tests for this. Most of the tests for the slider seems to have been removed:
https://chromium-review.googlesource.com/c/chromium/src/+/1211805/23/chrome/test/data/webui/settings/display_size_slider_test.js

Status: Started (was: Assigned)
Can we get this fixed as priority so it doesn't block the release schedule?  Assigned properly with the proper cc's?
Project Member

Comment 7 by bugdroid1@chromium.org, Oct 8

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db

commit f2a5cc5e14eb4192acd90f5234e8ff95a8b733db
Author: Esmael El-Moslimany <aee@chromium.org>
Date: Mon Oct 08 23:46:48 2018

Settings WebUI: cr-slider,add support for not immediately updating value until drag stop

Bug:  858882 
Change-Id: I8845b5112c34dd9750e256e881b295bcce1b6047
Reviewed-on: https://chromium-review.googlesource.com/c/1266601
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597733}
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/chrome/browser/resources/settings/controls/settings_slider.html
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/chrome/browser/resources/settings/controls/settings_slider.js
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/chrome/browser/resources/settings/device_page/display.js
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/chrome/test/data/webui/cr_elements/cr_slider_test.js
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/chrome/test/data/webui/settings/device_page_tests.js
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/ui/webui/resources/cr_elements/cr_slider/cr_slider.html
[modify] https://crrev.com/f2a5cc5e14eb4192acd90f5234e8ff95a8b733db/ui/webui/resources/cr_elements/cr_slider/cr_slider.js

FYI, this didn't land 'til 71.0.3575.0.  Blocking DEV until this Chrome is picked up.
Can we tag as fixed pending verification to remove the block?  Thanks
Status: Fixed (was: Started)
The original CL in #1 landed in 71.0.3565.0 with the fix in #7 landing in 71.0.3575.0.

Sign in to add a comment