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

Issue 10444117: Escape search terms correctly in the path portion of a custom search engine. (Closed)

Created:
8 years, 6 months ago by Peter Kasting
Modified:
8 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, hashimoto+watch_chromium.org, jochen+watch-content_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, jam, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, jshin+watch_chromium.org, zork+watch_chromium.org, bashi
Visibility:
Public.

Description

Escape search terms correctly in the path portion of a custom search engine. This regressed with the fix for bug 111923. This attempts to correct the problem without breaking that bug, which requires being able to encode path components using arbitrary encodings. This also eliminates a variety of functions as cleanup: * BrowserAccessibilityWin::Escape(); this was not actually used. * The 4-arg form of EscapeQueryParamValue(); only template_url.cc used this, and the necessary implementation can just move there. * EscapeQueryParamValueUTF8(); the few remaining callers using that can just manually convert on the caller side. BUG=127475 TEST=Create custom search engine with url "http://google.com/%s", try using your custom engine to search for "foo/bar", and make sure you wind up at "google.com/foo/bar" and not "google.com/foo%2Fbar" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139929

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -139 lines) Patch
M chrome/browser/search_engines/template_url.cc View 1 2 chunks +66 lines, -41 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 chunks +0 lines, -5 lines 0 comments Download
M net/base/escape.h View 1 2 chunks +10 lines, -21 lines 0 comments Download
M net/base/escape.cc View 1 2 chunks +4 lines, -10 lines 0 comments Download
M net/base/escape_icu.cc View 1 1 chunk +0 lines, -29 lines 0 comments Download
M net/base/escape_unittest.cc View 1 3 chunks +2 lines, -19 lines 0 comments Download
M net/net.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Kasting
sky: chrome/browser/search_engines dmazzoni: content/browser/accessibility brettw: net/base willchan: net/base OWNERS (bashi: FYI) Brett, I'm also concerned ...
8 years, 6 months ago (2012-05-31 20:33:12 UTC) #1
brettw
net LGTM. I think we should just remove the "deprecated" comment
8 years, 6 months ago (2012-05-31 20:57:08 UTC) #2
willchan no longer on Chromium
net/ LGTM
8 years, 6 months ago (2012-05-31 21:01:54 UTC) #3
sky
LGTM
8 years, 6 months ago (2012-05-31 21:07:08 UTC) #4
dmazzoni
Actually it looks like browser_accessibility_win.cc doesn't need Escape anymore - the only calls to it ...
8 years, 6 months ago (2012-05-31 21:12:25 UTC) #5
Peter Kasting
On 2012/05/31 21:12:25, Dominic Mazzoni wrote: > Please just delete Escape from browser_accessibility_win.h and > ...
8 years, 6 months ago (2012-05-31 23:03:42 UTC) #6
willchan no longer on Chromium
SGTM On Thu, May 31, 2012 at 4:03 PM, <pkasting@chromium.org> wrote: > On 2012/05/31 21:12:25, ...
8 years, 6 months ago (2012-05-31 23:13:43 UTC) #7
dmazzoni
8 years, 6 months ago (2012-05-31 23:25:50 UTC) #8
lgtm for accessibility, thanks

Powered by Google App Engine
This is Rietveld 408576698