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

Issue 2571443002: Fix bug when transitioning from an empty to a non-empty password list (Closed)

Created:
4 years ago by jdoerrie
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, kolos1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bug when transitioning from an empty to a non-empty password list This change fixes a bug that occurs when a list transitions from an empty to a non-empty state. Before this change, the entries of the list were updated before its visibility, which causes |List.redraw()| to skip adding items to the viewport when the list was hidden. Now the visibility will be updated first, leading to correct behavior. BUG=672869 R=dbeam@chromium.org CC=kolos@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/0edd353c07b8cebe483ec64f5e1abe638001d2d4 Cr-Commit-Position: refs/heads/master@{#440048}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix Closure Compiler Errors #

Total comments: 2

Patch Set 3 : Updated comment for clarity #

Total comments: 2

Patch Set 4 : Rebase and inline assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M chrome/browser/resources/options/password_manager.js View 1 2 3 3 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
jdoerrie
Dear all, PTAL.
4 years ago (2016-12-12 10:35:56 UTC) #4
kolos1
https://codereview.chromium.org/2571443002/diff/1/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/2571443002/diff/1/chrome/browser/resources/options/password_manager.js#newcode256 chrome/browser/resources/options/password_manager.js:256: this.updateListAndVisibility_(this.savedPasswordsList_, entries); To prevent closure compilation error, we could ...
4 years ago (2016-12-12 13:05:10 UTC) #8
Dan Beam
https://codereview.chromium.org/2571443002/diff/20001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/2571443002/diff/20001/chrome/browser/resources/options/password_manager.js#newcode169 chrome/browser/resources/options/password_manager.js:169: // Since the dataModel setter behaves lazily, the visibility ...
4 years ago (2016-12-13 02:11:16 UTC) #13
jdoerrie
https://codereview.chromium.org/2571443002/diff/20001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/2571443002/diff/20001/chrome/browser/resources/options/password_manager.js#newcode169 chrome/browser/resources/options/password_manager.js:169: // Since the dataModel setter behaves lazily, the visibility ...
4 years ago (2016-12-13 09:52:06 UTC) #16
Dan Beam
can we just set autoexpands = true? https://cs.chromium.org/chromium/src/ui/webui/resources/js/cr/ui/list.js?q=autoexpands&sq=package:chromium&dr=CSs&l=1062,68
4 years ago (2016-12-13 19:54:48 UTC) #17
jdoerrie
On 2016/12/13 19:54:48, Dan Beam wrote: > can we just set autoexpands = true? > ...
4 years ago (2016-12-14 16:56:03 UTC) #18
jdoerrie
On 2016/12/14 16:56:03, jdoerrie wrote: > On 2016/12/13 19:54:48, Dan Beam wrote: > > can ...
4 years ago (2016-12-19 10:22:03 UTC) #19
Dan Beam
lgtm https://codereview.chromium.org/2571443002/diff/40001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/2571443002/diff/40001/chrome/browser/resources/options/password_manager.js#newcode259 chrome/browser/resources/options/password_manager.js:259: this.updateListAndVisibility_(this.savedPasswordsList_, entries); can you just wrap with assert(), ...
4 years ago (2016-12-20 22:25:12 UTC) #20
jdoerrie
https://codereview.chromium.org/2571443002/diff/40001/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): https://codereview.chromium.org/2571443002/diff/40001/chrome/browser/resources/options/password_manager.js#newcode259 chrome/browser/resources/options/password_manager.js:259: this.updateListAndVisibility_(this.savedPasswordsList_, entries); On 2016/12/20 22:25:12, Dan Beam wrote: > ...
4 years ago (2016-12-21 07:07:41 UTC) #21
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/2571443002/60001
4 years ago (2016-12-21 07:08:08 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-21 08:06:16 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-21 08:08:16 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0edd353c07b8cebe483ec64f5e1abe638001d2d4
Cr-Commit-Position: refs/heads/master@{#440048}

Powered by Google App Engine
This is Rietveld 408576698