diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 17:57:47 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 17:57:47 +0000 |
commit | 46fb94424addb322c7dfad1e8eba462baf0cdcb7 (patch) | |
tree | 38a5cbcc5a884502dbd8c3cc9162e93654626660 /chrome/browser/custom_handlers | |
parent | 4bfc70fc7662aca658c3c45772e428c2f3b66b58 (diff) | |
download | chromium_src-46fb94424addb322c7dfad1e8eba462baf0cdcb7.zip chromium_src-46fb94424addb322c7dfad1e8eba462baf0cdcb7.tar.gz chromium_src-46fb94424addb322c7dfad1e8eba462baf0cdcb7.tar.bz2 |
Remove "open in new tab" items from context menu if the process doesn't
have permission to open them directly. For example, right-click on a
"chrome://" link in an ordinary window should show two items: Copy link
location and inspect element, but a full menu from a WebUI window itself.
NOTE: Fixing this issue requires a fix to ChildProcessSecurityPolicy, which as been silently too permissive.
BUG=104466
Review URL: http://codereview.chromium.org/8588039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_handlers')
-rw-r--r-- | chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc index 6a5a887..91c8543 100644 --- a/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc +++ b/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc @@ -42,6 +42,7 @@ class RegisterProtocolHandlerBrowserTest : public InProcessBrowserTest { ContextMenuParams params; params.media_type = WebKit::WebContextMenuData::MediaTypeNone; params.link_url = url; + params.unfiltered_link_url = url; TabContents* tab_contents = browser()->GetSelectedTabContents(); params.page_url = tab_contents->controller().GetActiveEntry()->url(); #if defined(OS_MACOSX) |