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

Issue 2928333002: Mac:Dont always enable findbar buttons when restoring focus with search string (Closed)

Created:
3 years, 6 months ago by carloschilazo
Modified:
3 years, 4 months ago
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac:Dont always enable findbar buttons when restoring focus with search string Avoids enabling findbar buttons when there is no search match. TEST=On mac: Search for something not in page, verify next/prev buttons disabled due to no results, focus away from findbar, do ctrl-f and verify buttons remain disabled. BUG=634289 Review-Url: https://codereview.chromium.org/2928333002 Cr-Commit-Position: refs/heads/master@{#492002} Committed: https://chromium.googlesource.com/chromium/src/+/91d01230acfaf11ce9ef59d1af6e9ce232cc9e01

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add unit tests for find in bar button enablement on Mac. #

Total comments: 3

Patch Set 3 : Use FindNotificationDetails number of matches to determine button enablement. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/find_bar/find_bar_browsertest.mm View 1 2 4 chunks +149 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm View 1 2 4 chunks +15 lines, -2 lines 1 comment Download

Messages

Total messages: 36 (21 generated)
carloschilazo
From what I could find interactive UI tests seem the best way to automatically test ...
3 years, 6 months ago (2017-06-11 20:52:33 UTC) #7
carloschilazo
3 years, 6 months ago (2017-06-11 20:53:01 UTC) #8
carloschilazo
Forgot to mention, from manual tests: state is preserved properly for the opposite test: when ...
3 years, 6 months ago (2017-06-11 21:00:27 UTC) #9
rohitrao (ping after 24h)
Let me send this to the trybots and see what they do. Do you think ...
3 years, 6 months ago (2017-06-13 00:23:37 UTC) #10
carloschilazo
On 2017/06/13 00:23:37, rohitrao (ping after 24h) wrote: > Let me send this to the ...
3 years, 6 months ago (2017-06-14 23:47:30 UTC) #15
carloschilazo
Browser tests added Rohit, let's see what the trybots say and take it from there.
3 years, 6 months ago (2017-06-20 00:47:31 UTC) #16
rohitrao (ping after 24h)
https://codereview.chromium.org/2928333002/diff/20001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm File chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (left): https://codereview.chromium.org/2928333002/diff/20001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm#oldcode366 chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm:366: // Enable the buttons if the find text is ...
3 years, 5 months ago (2017-06-26 13:20:15 UTC) #21
carloschilazo
https://codereview.chromium.org/2928333002/diff/20001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm File chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (left): https://codereview.chromium.org/2928333002/diff/20001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm#oldcode367 chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm:367: BOOL buttonsEnabled = ([[findText_ stringValue] length] > 0) ? ...
3 years, 5 months ago (2017-06-28 22:50:22 UTC) #22
carloschilazo
Hey Rohit, quick update, let me know what you think: The test case you mentioned ...
3 years, 5 months ago (2017-07-04 23:42:11 UTC) #23
carloschilazo
Went ahead and implemented my proposed approach, I added a browser test for the manual ...
3 years, 5 months ago (2017-07-09 19:31:45 UTC) #24
rohitrao (ping after 24h)
On 2017/07/09 19:31:45, carloschilazo wrote: > Went ahead and implemented my proposed approach, I added ...
3 years, 5 months ago (2017-07-19 08:34:18 UTC) #25
rohitrao (ping after 24h)
lgtm, thanks for adding the tests! One other case that's a little wonky is doing ...
3 years, 4 months ago (2017-07-26 14:55:31 UTC) #26
carloschilazo
On 2017/07/26 14:55:31, rohitrao (ping after 24h) wrote: > lgtm, thanks for adding the tests! ...
3 years, 4 months ago (2017-07-29 18:49:42 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/2928333002/40001
3 years, 4 months ago (2017-08-04 12:28:25 UTC) #33
commit-bot: I haz the power
3 years, 4 months ago (2017-08-04 12:49:34 UTC) #36
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/91d01230acfaf11ce9ef59d1af6e...

Powered by Google App Engine
This is Rietveld 408576698