summaryrefslogtreecommitdiffstats
path: root/webkit/glue/context_menu.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 22:31:42 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 22:31:42 +0000
commite6c798140918c7f2dac77528fb13ed94b14979f4 (patch)
treeccb440c0ffc62c526e5f1cc62932f4af8ab66f1e /webkit/glue/context_menu.h
parent03b1575eb9349ad2c7563ea0caef88da0906537e (diff)
downloadchromium_src-e6c798140918c7f2dac77528fb13ed94b14979f4.zip
chromium_src-e6c798140918c7f2dac77528fb13ed94b14979f4.tar.gz
chromium_src-e6c798140918c7f2dac77528fb13ed94b14979f4.tar.bz2
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. Fix checked in for Shinichiro Hamaji Original code review: http://codereview.chromium.org/91002 BUG=2725 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/context_menu.h')
-rw-r--r--webkit/glue/context_menu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index 099938c..32a6925 100644
--- a/webkit/glue/context_menu.h
+++ b/webkit/glue/context_menu.h
@@ -74,6 +74,10 @@ struct ContextMenuParams {
// invoked on.
GURL link_url;
+ // The link URL to be used ONLY for "copy link address". We don't validate
+ // this field in the frontend process.
+ GURL unfiltered_link_url;
+
// This is the URL of the image the context menu was invoked on.
GURL image_url;