New issue
Advanced search Search tips

Issue 827189 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

MacViewsBrowser: System find pasteboard is not updated by Find in Page

Project Member Reported by rsesek@chromium.org, Mar 29 2018

Issue description

Chrome Version: 67.0.3382.0
OS: macOS 10.13

What steps will reproduce the problem?
(1) --enable-features=ViewsBrowserWindows
(2) Open TextEdit.app and press Cmd+F
(3) Open a new tab in Chrome and press Cmd+F
(4) In Chrome's Find in Page box, type "bears"
(5) Switch back to TextEdit.app
(6) The contents of the Find box in TextEdit are not updated to "bears"
(7) Type "cows" in the Find box in TextEdit
(8) Switch back to Chrome
(9) The contents of the Find in Page box in Chrome are not updated to "cows"

What is the expected result?
In step (6), the contents of the Find box in TextEdit should be updated to "bears".
In step (9), the contents of the Find in Page box in Chrome should be updated to "cows".

The system maintains a find pasteboard, and an application's search buffer should be stored in this, making the contents available to all applications on the system.

What happens instead?
The contents of Find in Page in Chrome are not reflected in the system find pasteboard.

Please use labels and text to provide additional information.
 Issue 826478  is likely related.

For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Labels: M-68 Target-68
Owner: robliao@chromium.org
Status: Assigned (was: Untriaged)

Comment 2 by gov...@chromium.org, Mar 29 2018

** Bulk Edit **

FYI: Starting 04/13 M68 will be in canary, M68 Dev promotion will be on 04/26.

Labels: Sprint-1
Status: Started (was: Assigned)
The views FindBar probably doesn't know about this.

Comment 5 by gov...@chromium.org, Apr 25 2018

Pls mark the bug as fixed if CL is landed in trunk and nothing else is pending. Thank you.
Labels: Sprint-2
Cc: ellyjo...@chromium.org
Can we remove "Sprint-1" label as "Sprint-2" is already applied at #6?
Labels: -Sprint-1
Removing "Sprint-1" label per https://bugs.chromium.org/p/chromium/issues/detail?id=712244#c11.
Any progress here?
Half of this will be in code review soon.
Thank you for the update robliao@.
Project Member

Comment 12 by bugdroid1@chromium.org, May 10 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/626e8f4e769a669f0060451d720b28a4a10310d9

commit 626e8f4e769a669f0060451d720b28a4a10310d9
Author: Robert Liao <robliao@chromium.org>
Date: Thu May 10 22:56:09 2018

Refactor the Cocoa Pasteboard Integration Up to the Chrome Find Bar Level

This allows Cocoa and Views to use the same pasteboard notification.
This does not hook up views Find Bar updates to the pasteboard.

BUG= 826478 , 827189 

Change-Id: I038fe4b3acb9e3884ca928d9cbc5106a1a324913
Reviewed-on: https://chromium-review.googlesource.com/1053548
Commit-Queue: Robert Liao <robliao@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557716}
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/find_bar/find_bar_controller.cc
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/find_bar/find_bar_controller.h
[add] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/find_bar/find_bar_platform_helper.cc
[add] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/find_bar/find_bar_platform_helper.h
[add] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/find_bar/find_bar_platform_helper_mac.mm
[add] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/find_bar/find_bar_platform_helper_mac_browsertest.mm
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/views/find_bar_host.cc
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/browser/ui/views/find_bar_views_interactive_uitest.cc
[modify] https://crrev.com/626e8f4e769a669f0060451d720b28a4a10310d9/chrome/test/BUILD.gn

Can this be marked as fixed if nothing else is pending?
This one still has some pending work left.
Project Member

Comment 15 by bugdroid1@chromium.org, May 11 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3

commit 2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3
Author: Robert Liao <robliao@chromium.org>
Date: Fri May 11 16:46:06 2018

Propagate the Views Find Bar Text Changes to the Pasteboard

Adds support to get the views find bar text to the global pasteboard.
Also fixes a Cocoa bug introduced in the previous pasteboard change
where the selection is always reset to the beginning at every keystroke.

BUG= 826478 , 827189 , 842131 

Change-Id: If1a639f1997e3fea7fee2c66959e7dcdb2fd3bc7
Reviewed-on: https://chromium-review.googlesource.com/1055195
Commit-Queue: Robert Liao <robliao@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557902}
[modify] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/browser/ui/find_bar/find_bar_controller.cc
[modify] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/browser/ui/find_bar/find_bar_controller.h
[modify] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/browser/ui/find_bar/find_bar_platform_helper.h
[modify] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/browser/ui/find_bar/find_bar_platform_helper_mac.mm
[add] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/browser/ui/find_bar/find_bar_platform_helper_mac_interactive_uitest.mm
[modify] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/browser/ui/views/find_bar_view.cc
[modify] https://crrev.com/2a741a1fd691061cb7ff8c93a4a6d9a1fa5937c3/chrome/test/BUILD.gn

Pls mark as fixed if nothing else is pending now. Thank you.
Status: Fixed (was: Started)
This should be good to go now.

Sign in to add a comment