Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Issue 2567693002: Elide origins for passwords settings in CSS instead of JS (Closed)

Created:
4 years ago by vabr (Chromium)
Modified:
4 years ago
Reviewers:
kolos1, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, gcasto+watchlist_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Elide origins for passwords settings in CSS instead of JS Displayed origins of stored passwords are elided to fit the cell they are in. The ellipsis needs to be applied from the left, because the most important security information about the hostname are the top (right-most) parts of the domain [1]. In the past this needed to be done by password_manager.js, because changing the text direction in CSS to allow eliding from left left to issues with screen readers. This CL drops the JS code for computing the elided string, and instead specifies the text direction for the hostname to be RTL. This applies the ellipsis from left, while working as expected with the screen reader, and not interfering with the text direction of the Chrome UI. [1] https://www.chromium.org/Home/chromium-security/enamel#TOC-Eliding-Origin-Names-And-Hostnames BUG=667130 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/7f5230e3d8213f33ba0f1014b1e682f75e36028f Cr-Commit-Position: refs/heads/master@{#438469}

Patch Set 1 #

Patch Set 2 : Elide through CSS #

Total comments: 4

Patch Set 3 : Tune CSS better #

Total comments: 3

Patch Set 4 : Add a note about direction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -57 lines) Patch
M chrome/browser/resources/options/password_manager.js View 1 3 chunks +0 lines, -56 lines 0 comments Download
M chrome/browser/resources/options/password_manager_list.css View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/password_manager_list.js View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 34 (18 generated)
vabr (Chromium)
Hi Dan, Could you please review? I was considering doing a binary search to find ...
4 years ago (2016-12-09 18:34:25 UTC) #5
Dan Beam
can you just switch to css? the screen reader bug seen before is fixed. just ...
4 years ago (2016-12-10 00:40:12 UTC) #8
vabr (Chromium)
On 2016/12/10 00:40:12, Dan Beam wrote: > can you just switch to css? the screen ...
4 years ago (2016-12-10 23:39:44 UTC) #11
vabr (Chromium)
Hi Maxim, In addition to Dan's review, could you also please have a look and ...
4 years ago (2016-12-12 06:57:29 UTC) #16
kolos1
Thanks Vaclav for fixing that. LGTM
4 years ago (2016-12-12 09:31:04 UTC) #17
kolos1
https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css File chrome/browser/resources/options/password_manager_list.css (right): https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css#newcode78 chrome/browser/resources/options/password_manager_list.css:78: -webkit-margin-end: 7px; The links points to this CL.
4 years ago (2016-12-12 09:55:57 UTC) #18
vabr (Chromium)
https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css File chrome/browser/resources/options/password_manager_list.css (right): https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css#newcode78 chrome/browser/resources/options/password_manager_list.css:78: -webkit-margin-end: 7px; On 2016/12/12 09:55:57, kolos1 wrote: > The ...
4 years ago (2016-12-12 10:35:52 UTC) #19
Dan Beam
https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css File chrome/browser/resources/options/password_manager_list.css (right): https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css#newcode82 chrome/browser/resources/options/password_manager_list.css:82: text-align: left; don't we have to set direction: ltr ...
4 years ago (2016-12-13 04:07:33 UTC) #20
vabr (Chromium)
On 2016/12/13 04:07:33, Dan Beam wrote: > https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css > File chrome/browser/resources/options/password_manager_list.css (right): > > https://codereview.chromium.org/2567693002/diff/20001/chrome/browser/resources/options/password_manager_list.css#newcode82 ...
4 years ago (2016-12-13 06:17:09 UTC) #21
Dan Beam
On 2016/12/13 06:17:09, vabr (Chromium) wrote: > On 2016/12/13 04:07:33, Dan Beam wrote: > > ...
4 years ago (2016-12-13 07:21:24 UTC) #22
vabr (Chromium)
Hi Dan, Please take a look at patch set 3, with screenshots at https://crbug.com/667130#c11. Changing ...
4 years ago (2016-12-13 09:23:38 UTC) #23
Dan Beam
there's probably some magical hack somewhere to make only the end of the hostname/origin/whatever show ...
4 years ago (2016-12-14 07:45:33 UTC) #25
vabr (Chromium)
Thanks, Dan! > there's probably some magical hack somewhere to make only the end of ...
4 years ago (2016-12-14 08:06:03 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2567693002/60001
4 years ago (2016-12-14 08:06:34 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 09:11:22 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-14 09:14:32 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7f5230e3d8213f33ba0f1014b1e682f75e36028f
Cr-Commit-Position: refs/heads/master@{#438469}

Powered by Google App Engine
This is Rietveld 408576698