New issue
Advanced search Search tips

Issue 832306 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

MacViewsBrowser: Omnibox focus ring shows as double layered?

Project Member Reported by manoranj...@chromium.org, Apr 12 2018

Issue description

Chrome Version: 67.0.3395.0
OS: macOS 10.13.5 Beta (17F35e)

What steps will reproduce the problem?
(1) --enable-features=ViewsBrowserWindows
(2) Open new tab
(3) Click on Omnibox to see the focus ring

What is the expected result?
Omnibox focus ring should be highlighted as single layer.

What happens instead?
Omnibox focus ring shows as double layered?

Please see the attached screen shots for your reference.

Thank you!
 
Expected_Focus_Ring.png
10.8 KB View Download
Actual_Focus_Ring.png
26.2 KB View Download

Comment 1 by gov...@chromium.org, Apr 13 2018

This bug is targeted for M67. 
ellyjones@, could you ptal and assign to appropriate dev?
Owner: ellyjo...@chromium.org
Status: Assigned (was: Untriaged)
The appropriate dev is probably me.
Project Member

Comment 3 by bugdroid1@chromium.org, Apr 16 2018

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

commit 1af8d3ffcdec96999a970c108b85586bb6f65746
Author: Elly Fong-Jones <ellyjones@chromium.org>
Date: Mon Apr 16 17:59:41 2018

macviews: use mac-y focus rings

This change:
1) Uses the system focus ring color even when SecondaryUiMd is enabled
2) Moves focus ring thickness and inset out to PlatformStyle
3) Adds Mac overrides of the default values

Bug:  832306 
Change-Id: I6c18d9d0431dc411a5cb95f9c0639e41f4aa1127
Reviewed-on: https://chromium-review.googlesource.com/1012163
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551030}
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/native_theme/native_theme_mac.mm
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/controls/focus_ring.cc
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/style/platform_style.cc
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/style/platform_style.h
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/style/platform_style_mac.mm

Comment 4 by gov...@chromium.org, Apr 16 2018

Thank you Elly, can this be marked as fixed if nothing else is pending?
Status: Fixed (was: Assigned)
Yep, the fix is landed on trunk now.

Comment 6 by gov...@chromium.org, Apr 16 2018

CL listed at #3 will need a merge to M67. Please request a merge.
Labels: Needs-Feedback
Tested the issue on chrome version 68.0.3398.0 using Mac 10.12.6 with steps mentioned below:
1) Launched chrome version and enabled --enable-features=ViewsBrowserWindows from chrome://flags
2) Clicked on Omnibox to see the focus ring, seen the focus ring is overlapped with the ash colour ring

ellyjones@ Please find the attached screenshot for your reference and help us in confirming the fix.

Thanks!
832306.png
81.9 KB View Download
#7: That screenshot is working as intended.
Labels: Merge-Request-67
Labels: -Merge-Request-67 Merge-Approved-67
Approving merge to M67 branch 3396 based on comments #7 and #8. Pls merge ASAP so we can pick it up for tomorrow's M67 dev release. Thank you.
Labels: -Merge-Approved-67 Merge-Rejected-67
Rejecting merge to M67 per offline chat with  ellyjones@.
Project Member

Comment 12 by bugdroid1@chromium.org, Apr 17 2018

Labels: merge-merged-testbranch
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1af8d3ffcdec96999a970c108b85586bb6f65746

commit 1af8d3ffcdec96999a970c108b85586bb6f65746
Author: Elly Fong-Jones <ellyjones@chromium.org>
Date: Mon Apr 16 17:59:41 2018

macviews: use mac-y focus rings

This change:
1) Uses the system focus ring color even when SecondaryUiMd is enabled
2) Moves focus ring thickness and inset out to PlatformStyle
3) Adds Mac overrides of the default values

Bug:  832306 
Change-Id: I6c18d9d0431dc411a5cb95f9c0639e41f4aa1127
Reviewed-on: https://chromium-review.googlesource.com/1012163
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551030}
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/native_theme/native_theme_mac.mm
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/controls/focus_ring.cc
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/style/platform_style.cc
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/style/platform_style.h
[modify] https://crrev.com/1af8d3ffcdec96999a970c108b85586bb6f65746/ui/views/style/platform_style_mac.mm

Labels: TE-Verified-M68 TE-Verified-68.0.3401.0
Able to reproduce the issue on chrome reported version 67.0.3395.0
Verified the fix on Mac 10.12.6 on Chrome version #68.0.3401.0 as per the comment#0
Attaching screenshot for reference.
Observed "Omnibox focus ring is highlighted as single layer"
Hence, the fix is working as expected.
Adding the verified label.

Thanks!
832306.png
55.5 KB View Download

Sign in to add a comment