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

Issue 6995074: [Mac] Don't copy text typed into the find bar to the find pasteboard in incognito windows. (Closed)

Created:
9 years, 6 months ago by Bernhard Bauer
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, TVL
Visibility:
Public.

Description

[Mac] Don't copy text typed into the find bar to the find pasteboard in incognito windows. BUG=85306 TEST=See bug

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 1

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm View 1 2 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bernhard Bauer
please review.
9 years, 6 months ago (2011-06-08 14:39:51 UTC) #1
Robert Sesek
LGTM http://codereview.chromium.org/6995074/diff/1001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm File chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (right): http://codereview.chromium.org/6995074/diff/1001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm#newcode175 chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm:175: if (!tab_contents->profile()->IsOffTheRecord()) { Add a comment that references ...
9 years, 6 months ago (2011-06-08 14:46:06 UTC) #2
rohitrao (ping after 24h)
Please wait one minute on this. I'm trying to dig a previous attempt out of ...
9 years, 6 months ago (2011-06-08 15:11:12 UTC) #3
rohitrao (ping after 24h)
I wrote this exact CL a year ago, but it turned out to be completely ...
9 years, 6 months ago (2011-06-08 15:17:21 UTC) #4
Bernhard Bauer
On 2011/06/08 15:17:21, rohitrao wrote: > I wrote this exact CL a year ago, but ...
9 years, 6 months ago (2011-06-08 15:23:48 UTC) #5
rohitrao (ping after 24h)
9 years, 6 months ago (2011-06-08 15:30:37 UTC) #6
> Hm, it seems that hitting Cmd-G in an incognito window doesn't use the string
> that was typed into the the find bar now. I'll take a look.

Yes, that sounds somewhat familiar.  When you do a find, the find backend*
caches the search term.  Then, when you press Cmd-G to Find Next, it uses that
cached value to do the search.  When you press Cmd-G, the code never actually
looks at the value in the findbar itself.

On OS X, we integrate the pasteboard by always ignoring the search term (cached
or typed) and replacing it with what's on the pasteboard.  Until now, the cached
value has always been ignored, so it didn't matter if it was wrong.  If we start
conditionally copying to the pasteboard, then we need to start making sure that
the cached search term is always correct.

I'll update my old CL and bug with this test case when I get a chance.

Powered by Google App Engine
This is Rietveld 408576698