Local NTP, Realbox: fix another suggestion removal focusout bug
I accidentally missed a case (or merge conflicted or something) in which we should be ignoring focusout when the user deletes the focused item. This specific case reproduces with these steps: 0) Search for "what are carbs" (and execute search) 1) Type "what" into realbox on NTP afterward 2) Move focus to "what are carbs" result 3) Press Shift+Delete I've added an assert() to ensure this doesn't happen again, and added a test. I've also updated a test that was triggering the assert() because it was differing from what the prod code actually does (there was a comment admitting that). Bug: 1002689 Change-Id: Ic534ba725931291c3c327a43ea52d65d27ae51a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1868092 Auto-Submit: Dan Beam <dbeam@chromium.org> Reviewed-by:Moe Ahmadi <mahmadi@chromium.org> Commit-Queue: Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#707461}
Showing
Please register or sign in to comment