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

Issue 2794173002: MD Settings: Fix iron-list losing focus when items change. (Closed)

Created:
3 years, 8 months ago by scottchen
Modified:
3 years, 6 months ago
Reviewers:
stevenjb, dpapad
CC:
calamity, chromium-reviews, dbeam+watch-polymer_chromium.org, michaelpg+watch-polymer_chromium.org, tsergeant
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix iron-list losing focus when items change. This CL makes a patch to the iron-list javascript code directly, in order to fix issues with iron-list focus bugs when the backing items changes. BUG=699001 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2794173002 Cr-Commit-Position: refs/heads/master@{#477356} Committed: https://chromium.googlesource.com/chromium/src/+/3a7d55be3d2245f52c60b892c83ea17f62766b7c

Patch Set 1 #

Patch Set 2 : iterate through the focused item path instead of through every single item in the list #

Patch Set 3 : remove console log #

Patch Set 4 : extract the patch code out to its own function since it needs to be reused #

Patch Set 5 : rebase #

Patch Set 6 : use lastFocusedIndex for less jank #

Patch Set 7 : move actual flagging to another CL #

Patch Set 8 : fix upstream #

Patch Set 9 : add the patch file change #

Total comments: 7

Patch Set 10 : feedback #

Patch Set 11 : feedback #

Patch Set 12 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -5 lines) Patch
M third_party/polymer/v1_0/chromium.patch View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +66 lines, -3 lines 0 comments Download
M third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +29 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (21 generated)
scottchen
3 years, 8 months ago (2017-04-04 20:42:44 UTC) #2
scottchen
Finally, after preemptively making a bunch of other CLs to see whether this fix will ...
3 years, 7 months ago (2017-05-04 00:28:19 UTC) #6
stevenjb
https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode948 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:948: } Can we do something like: var idx = ...
3 years, 7 months ago (2017-05-09 17:14:00 UTC) #7
scottchen
https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode948 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:948: } On 2017/05/09 17:14:00, stevenjb wrote: > Can we ...
3 years, 7 months ago (2017-05-22 22:57:31 UTC) #8
stevenjb
https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode948 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:948: } On 2017/05/22 22:57:31, scottchen wrote: > On 2017/05/09 ...
3 years, 7 months ago (2017-05-22 23:14:55 UTC) #9
Dan Beam
i'm not a particularly useful reviewer here. i don't really know iron-list's code well enough. ...
3 years, 7 months ago (2017-05-23 16:29:23 UTC) #10
Dan Beam
see also: https://codereview.chromium.org/2885723002/
3 years, 7 months ago (2017-05-23 16:38:51 UTC) #12
scottchen
> have you talked to keanulee@ or blasten@? Yeah, talked to keanulee@, he's aware of ...
3 years, 7 months ago (2017-05-23 21:05:48 UTC) #13
scottchen
https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode948 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:948: } On 2017/05/22 23:14:54, stevenjb wrote: > On 2017/05/22 ...
3 years, 7 months ago (2017-05-23 21:43:49 UTC) #14
stevenjb
https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode948 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:948: } On 2017/05/23 21:43:49, scottchen wrote: > On 2017/05/22 ...
3 years, 7 months ago (2017-05-23 21:53:47 UTC) #15
dpapad
LGTM https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode905 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:905: var rendering = ['items', 'items.splices'].includes(change.path); Nit (optional): Maybe ...
3 years, 7 months ago (2017-05-23 22:19:43 UTC) #16
scottchen
https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js File third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js (right): https://codereview.chromium.org/2794173002/diff/160001/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js#newcode905 third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js:905: var rendering = ['items', 'items.splices'].includes(change.path); On 2017/05/23 22:19:43, dpapad ...
3 years, 7 months ago (2017-05-24 21:34:35 UTC) #19
scottchen
3 years, 7 months ago (2017-05-24 21:34:38 UTC) #20
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/2794173002/220001
3 years, 6 months ago (2017-06-01 21:06:37 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/228849)
3 years, 6 months ago (2017-06-01 22:53:35 UTC) #27
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/2794173002/220001
3 years, 6 months ago (2017-06-01 22:54:43 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/229049)
3 years, 6 months ago (2017-06-02 00:26:02 UTC) #31
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/2794173002/220001
3 years, 6 months ago (2017-06-05 21:44:45 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/230978)
3 years, 6 months ago (2017-06-05 23:04:59 UTC) #35
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/2794173002/220001
3 years, 6 months ago (2017-06-06 01:10:03 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/231115)
3 years, 6 months ago (2017-06-06 02:46:14 UTC) #39
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/2794173002/220001
3 years, 6 months ago (2017-06-06 17:35:28 UTC) #41
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 18:53:50 UTC) #44
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/3a7d55be3d2245f52c60b892c83e...

Powered by Google App Engine
This is Rietveld 408576698