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

Issue 1817053002: [Password Manager] Changes implementation of left elided origin on chrome://settings/passwords (Closed)

Created:
4 years, 9 months ago by kolos1
Modified:
4 years, 9 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, vabr+watchlistpasswordmanager_chromium.org, arv+watch_chromium.org, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Changes implementation of left elided origin on chrome://settings/passwords The previous implementation reversed the direction of text that causes bugs with screen readers, copying the origin. This CL introduces Javascript solution that dinamically adjusts the length of origin's string. BUG=595662, 595276 Committed: https://crrev.com/1f3fdc9a5caf59ff07ac0edc37123d17ee0640bb Cr-Commit-Position: refs/heads/master@{#382806}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Cache computed style. Skip eliding for Android credentials. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -26 lines) Patch
M chrome/browser/resources/options/password_manager.js View 1 3 chunks +26 lines, -0 lines 2 comments Download
M chrome/browser/resources/options/password_manager_list.css View 2 chunks +1 line, -19 lines 0 comments Download
M chrome/browser/resources/options/password_manager_list.js View 4 chunks +4 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
kolos1
Hi Evan, Please review this Javascript implementation of left elided origins for chrome://settings/passwords. Regards, Maxim
4 years, 9 months ago (2016-03-21 13:08:15 UTC) #2
Evan Stade
lgtm https://codereview.chromium.org/1817053002/diff/20001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1817053002/diff/20001/chrome/browser/resources/options/password_manager.js#newcode179 chrome/browser/resources/options/password_manager.js:179: parseInt(window.getComputedStyle(entry.urlDiv).webkitPaddingStart); nit: store getComputedStyle in a var? https://codereview.chromium.org/1817053002/diff/20001/chrome/browser/resources/options/password_manager.js#newcode186 ...
4 years, 9 months ago (2016-03-21 21:59:02 UTC) #5
kolos1
I made some changes. See comments. If this CL is ok, please review the next ...
4 years, 9 months ago (2016-03-22 19:10:24 UTC) #7
Evan Stade
https://codereview.chromium.org/1817053002/diff/60001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1817053002/diff/60001/chrome/browser/resources/options/password_manager.js#newcode185 chrome/browser/resources/options/password_manager.js:185: urlLink.textContent = '…' + urlLink.textContent.substring(1); to maintain the tooltip, ...
4 years, 9 months ago (2016-03-22 19:42:23 UTC) #8
kolos1
https://codereview.chromium.org/1817053002/diff/60001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1817053002/diff/60001/chrome/browser/resources/options/password_manager.js#newcode185 chrome/browser/resources/options/password_manager.js:185: urlLink.textContent = '…' + urlLink.textContent.substring(1); On 2016/03/22 19:42:23, Evan ...
4 years, 9 months ago (2016-03-22 19:49:26 UTC) #9
Evan Stade
lgtm
4 years, 9 months ago (2016-03-22 20:02:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817053002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817053002/60001
4 years, 9 months ago (2016-03-23 07:08:10 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 9 months ago (2016-03-23 07:55:03 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1f3fdc9a5caf59ff07ac0edc37123d17ee0640bb Cr-Commit-Position: refs/heads/master@{#382806}
4 years, 9 months ago (2016-03-23 07:56:10 UTC) #16
kolos1
4 years, 9 months ago (2016-03-23 09:34:40 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:60001) has been created in
https://codereview.chromium.org/1826533003/ by kolos@chromium.org.

The reason for reverting is: There is a bug in updateOriginsEliding_. The
algorithm might fall to infinite loop. 

CL also breaks "Closure Compilation Linux"
(https://build.chromium.org/p/chromium.fyi/builders/Closure%20Compilation%20Li...).
It complains on parseInt calls. parseInt should be called with 2 arguments
(parsed string and base).

.

Powered by Google App Engine
This is Rietveld 408576698