New issue
Advanced search Search tips

Issue 648554 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

cocoa browser: omnibox RTL is incomplete

Project Member Reported by ellyjo...@chromium.org, Sep 20 2016

Issue description

The omnibox displays incomplete RTL behavior with -NSForceRightToLeftWritingDirection YES -AppleTextDirection YES --force-ui-direction=rtl:

1) The initial omnibox value is left-justified, not right-justified
2) Once you start typing, the text jumps to the right side of the omnibox
3) If you select a completion, or a completion is offered, the text jumps back to the left side, but the completion menu is still on the right side
4) If the "tab to search" decoration is visible, it is drawn over something else in the omnibox, making the text unreadable
5) Once you navigate, the omnibox text ends up on the left again
 

Comment 1 by shrike@chromium.org, Nov 15 2016

Owner: lgrey@chromium.org
Status: Assigned (was: Available)

Comment 2 by lgrey@chromium.org, Dec 2 2016

Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, Dec 14 2016

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

commit 4f56da4755ccc370cd682cce472d4ba1c0781207
Author: lgrey <lgrey@chromium.org>
Date: Wed Dec 14 16:38:58 2016

There's a bunch of weird glitches right now that cause the text to flip to the left. AFAICT, these two changes fix all of them:
1) Set the alignment of the text field directly.
2) RFC 3987 requires us to set the writing direction of URLs to LTR so that we get שלום.com instead of moc.שלום. This appears to change the alignment of the string if it's not set explicitly. So: set it explicitly.

BUG= 648554 ,  673362 

Review-Url: https://codereview.chromium.org/2555783002
Cr-Commit-Position: refs/heads/master@{#438529}

[modify] https://crrev.com/4f56da4755ccc370cd682cce472d4ba1c0781207/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
[modify] https://crrev.com/4f56da4755ccc370cd682cce472d4ba1c0781207/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
[modify] https://crrev.com/4f56da4755ccc370cd682cce472d4ba1c0781207/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
[modify] https://crrev.com/4f56da4755ccc370cd682cce472d4ba1c0781207/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm

Comment 5 by lgrey@chromium.org, Jan 4 2017

Status: Fixed (was: Started)
Confirmed on Canary

Sign in to add a comment