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

Issue 1823423002: [Password Manager] Changes implementation of left elided origins (Relanding) (Closed)

Created:
4 years, 9 months ago by kolos1
Modified:
4 years, 8 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 origins on chrome://settings/passwords (Relanding) Reland https://codereview.chromium.org/1826533003/. It broke Closure Linux Compilation bot (https://build.chromium.org/p/chromium.fyi/builders/Closure%20Compilation%20Linux/builds/50842). The bot complained on parseInt calls. parseInt should be called with 2 arguments (parsed string and base). There was also a bug in the algorithm of updateOriginsEliding_. Reproduction: user enters a query w/o any matching entries in search box (i.e. there will be no entries) and then removes the query. The algorithm falls into infinite loop, because entry.urlDiv.offsetWidth is 0. We have to swap updateOriginsEliding_ and updateListVisibility_ to update the list before we read entry.urlDiv.offsetWidth. BUG=595662, 595276 Committed: https://crrev.com/fa2ae1d61d3bb8d61e6bf2aee4d17662925d70ab Cr-Commit-Position: refs/heads/master@{#383927}

Patch Set 1 : Reverted CL #

Patch Set 2 : Fixes parseInt and infinite loop issues #

Patch Set 3 : Exception origins should be copiable, usernames shouldn't (because they are <input>'s) #

Total comments: 2

Patch Set 4 : Added the comment on the order of method calls. #

Total comments: 2

Patch Set 5 : Add the check that columnWidth > 0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -27 lines) Patch
M chrome/browser/resources/options/password_manager.js View 1 2 3 4 3 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/password_manager_list.css View 1 2 2 chunks +2 lines, -20 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: 14 (6 generated)
kolos1
Hi Evan, I had to make some fixes (see description). Please review changes. Regards, Maxim
4 years, 9 months ago (2016-03-23 10:08:15 UTC) #3
Evan Stade
https://codereview.chromium.org/1823423002/diff/40001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1823423002/diff/40001/chrome/browser/resources/options/password_manager.js#newcode228 chrome/browser/resources/options/password_manager.js:228: this.updateListVisibility_(this.passwordExceptionsList_); if the order matters here, that's subtle and ...
4 years, 9 months ago (2016-03-23 18:53:30 UTC) #4
kolos1
https://codereview.chromium.org/1823423002/diff/40001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1823423002/diff/40001/chrome/browser/resources/options/password_manager.js#newcode228 chrome/browser/resources/options/password_manager.js:228: this.updateListVisibility_(this.passwordExceptionsList_); On 2016/03/23 18:53:30, Evan Stade wrote: > if ...
4 years, 9 months ago (2016-03-24 07:45:43 UTC) #5
Evan Stade
lgtm https://codereview.chromium.org/1823423002/diff/60001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1823423002/diff/60001/chrome/browser/resources/options/password_manager.js#newcode178 chrome/browser/resources/options/password_manager.js:178: var columnWidth = entry.urlDiv.offsetWidth - to be doubly ...
4 years, 9 months ago (2016-03-24 16:29:00 UTC) #6
kolos1
https://codereview.chromium.org/1823423002/diff/60001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/1823423002/diff/60001/chrome/browser/resources/options/password_manager.js#newcode178 chrome/browser/resources/options/password_manager.js:178: var columnWidth = entry.urlDiv.offsetWidth - On 2016/03/24 16:29:00, Evan ...
4 years, 8 months ago (2016-03-29 08:35:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823423002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823423002/80001
4 years, 8 months ago (2016-03-30 06:25:23 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-30 07:52:49 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 07:53:57 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fa2ae1d61d3bb8d61e6bf2aee4d17662925d70ab
Cr-Commit-Position: refs/heads/master@{#383927}

Powered by Google App Engine
This is Rietveld 408576698