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

Issue 10536108: When the user highlights all or part of a link, don't show "Go to <URL>" if that would navigate to … (Closed)

Created:
8 years, 6 months ago by Peter Kasting
Modified:
8 years, 6 months ago
Reviewers:
tfarina
CC:
chromium-reviews, Avi (use Gerrit), ajwong+watch_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

When the user highlights all or part of a link, don't show "Go to <URL>" if that would navigate to the same place as the link itself, as this is redundant. BUG=112768 TEST=Go to a bug with a link; highlight the link (or the link without "http://" and/or the trailing slash), right-click, verify there's no "go to" context menu item. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141684

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 chunk +3 lines, -2 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Peter Kasting
8 years, 6 months ago (2012-06-12 04:20:45 UTC) #1
tfarina
8 years, 6 months ago (2012-06-12 17:13:58 UTC) #2
LGTM.

Thanks for this fix Peter.

http://codereview.chromium.org/10536108/diff/1/chrome/browser/tab_contents/re...
File chrome/browser/tab_contents/render_view_context_menu.cc (right):

http://codereview.chromium.org/10536108/diff/1/chrome/browser/tab_contents/re...
chrome/browser/tab_contents/render_view_context_menu.cc:920: if
((selection_navigation_url_ != params_.link_url) &&
I verified this works.

Powered by Google App Engine
This is Rietveld 408576698