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

Issue 91002: Always enable copy-link-address in context menu. (Closed)

Created:
11 years, 8 months ago by hamaji
Modified:
9 years, 7 months ago
Reviewers:
brettw, jam, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Always enable copy-link-address in context menu. Added a new field into ContextMenuParam only for this purpose. The new field won't be validated in frontend processes. In this way, even if renderer processes are going to mad, the frontend would be OK if the frontend uses this new field only for copying into the clipboard. BUG=2725

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M chrome/browser/renderer_host/render_view_host.cc View 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/context_menu.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
hamaji
Hi, Could you review this change? I'm not sure if this change is the best ...
11 years, 8 months ago (2009-04-21 20:35:58 UTC) #1
Evan Stade
If this works, I don't understand why it works, because it looks like link_url and ...
11 years, 8 months ago (2009-04-21 22:18:50 UTC) #2
hamaji
It works (and is necessary) because |params.link_url| is modified in RenderViewHost::OnMsgContextMenu() by FilterURL(). I added ...
11 years, 8 months ago (2009-04-21 22:29:12 UTC) #3
Evan Stade
Aha, thanks for the explanation. I'm CCing brettw and jam because they'd probably know better ...
11 years, 8 months ago (2009-04-21 22:39:28 UTC) #4
hamaji
Thanks for CCing this, and sorry for lacking information in my first description. I do ...
11 years, 8 months ago (2009-04-21 22:45:44 UTC) #5
brettw
I think overall this is the right approach. http://codereview.chromium.org/91002/diff/3003/3004 File webkit/glue/context_menu.h (right): http://codereview.chromium.org/91002/diff/3003/3004#newcode79 Line 79: ...
11 years, 8 months ago (2009-04-22 17:50:28 UTC) #6
hamaji
Thank you for the review! http://codereview.chromium.org/91002/diff/3003/3004 File webkit/glue/context_menu.h (right): http://codereview.chromium.org/91002/diff/3003/3004#newcode79 Line 79: GURL link_url_for_copy; On ...
11 years, 8 months ago (2009-04-22 18:28:44 UTC) #7
brettw
LGTM. I also like unfiltered.
11 years, 8 months ago (2009-04-22 19:26:18 UTC) #8
hamaji
11 years, 8 months ago (2009-04-22 19:34:59 UTC) #9
On 2009/04/22 19:26:18, brettw wrote:
> LGTM. I also like unfiltered.

Thanks you very much! Could you check this in? I don't have permission of SVN
write access yet.

Powered by Google App Engine
This is Rietveld 408576698