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

Issue 642732 link

Starred by 4 users

Issue metadata

Status: Archived
Owner:
Closed: Sep 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Window controls on wrong side in RTL

Project Member Reported by pinkerton@chromium.org, Aug 31 2016

Issue description

Version: M53
OS: macos 10.11.x

In RTL mode, our window controls and tab strip are still LTR. See attached image. 

This report comes from Apple. 
 
unnamed.png
179 KB View Download
Cc: ellyjo...@chromium.org
Labels: -Pri-3 Pri-2
Owner: ellyjo...@chromium.org
Status: Started (was: Untriaged)
Tabstrip with https://codereview.chromium.org/2313723004/ applied.
Screen Shot 2016-09-06 at 11.26.02 AM.png
31.6 KB View Download
Proper RTL tab strip now.

There are some deficiencies:
1) The profile switcher is anchored to the right edge of the window even in RTL, which is Not Right (if you resize the window, it slides around the bar)
2) Tab dragging is straight-up busted - the tabs act as though they were at their real coordinates
3) The animation when creating a new tab is from the bottom right, so it looks goofy - the tab flies across the web content area
4) Closing tabs using the mouse always triggers rapid close mode, even if your mouse doesn't end up over a tab
5) I haven't tried out pinned tabs/etc
Screen Shot 2016-09-08 at 9.45.49 AM.png
33.2 KB View Download
Looking good. To add to your to do list, the favicon and close button need to switch places and the title needs to be right-aligned. And long tab titles need to fade out to the left instead of the right.

ellyjones@ - are you landing this behind a flag? Please do that for now and let's talk again on Monday about our plan to roll out RTL support in the top chrome.

It is landed behind a flag, yes. Pass --enable-features=ExperimentalMacRTL to enable it; it's off by default.
Thank you.
Project Member

Comment 9 by bugdroid1@chromium.org, Sep 16 2016

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

commit e5804676b8bbf0fdd6d68cb0b6b97da0046180b4
Author: ellyjones <ellyjones@chromium.org>
Date: Fri Sep 16 13:35:05 2016

mac rtl: pin profile switcher to left edge in rtl

Otherwise, moving the right edge of the window moves the switcher. Oops.

This CL also refactors cocoa_l10n_util::ExperimentalMacRTLIsEnabled() to
include a test for base::i18n::IsRTL(), since every callsite needed to check
both.

BUG= 642732 

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

[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/browser_window_controller.mm
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/browser_window_layout.mm
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/framed_browser_window.mm
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/l10n_util.h
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/l10n_util.mm
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/new_tab_button.mm
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
[modify] https://crrev.com/e5804676b8bbf0fdd6d68cb0b6b97da0046180b4/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm

Cc: -shrike@chromium.org
Owner: shrike@chromium.org
Status: Assigned (was: Started)
Handing this over to shrike@ for triage/assignment. I think there are O(weeks) of work left here.
Cc: shrike@chromium.org
Owner: lgrey@chromium.org

Comment 12 by lgrey@chromium.org, Oct 31 2016

Status: Started (was: Assigned)
Labels: Proj-MacRTL

Comment 14 by ecacho@google.com, Jun 27 2017

Labels: Needs-TestConfirmation
Status: Unconfirmed (was: Started)
This is not a localization bug. Can't confirm that it's still relevant to the current English UI.

Comment 15 by ajha@chromium.org, Jun 28 2017

Cc: ajha@chromium.org
Labels: -Needs-TestConfirmation Needs-Feedback
Status: Started (was: Unconfirmed)
Tested this on Mac OS 10.12.5 using the latest canary(61.0.3143.0) by enabling mac-rtl flag but not seeing any effect on tabstrip or Window controls.

lgrey@: Could you please review the attached screen-shot and confirm if there is still WIP and anything being missed on enabling the RTL on Mac.


642732.png
190 KB View Download

Comment 16 by ecacho@google.com, Jun 29 2017

Components: -UI>Localization UI>Browser
Status: Archived (was: Started)

Sign in to add a comment