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/chrome_content_browser_client.h | |
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/chrome_content_browser_client.h')
-rw-r--r-- | chrome/browser/chrome_content_browser_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h index 3e495a0..243b804 100644 --- a/chrome/browser/chrome_content_browser_client.h +++ b/chrome/browser/chrome_content_browser_client.h @@ -31,6 +31,7 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient { virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, const GURL& url) OVERRIDE; virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; + virtual bool IsHandledURL(const GURL& url) OVERRIDE; virtual bool IsSuitableHost(content::RenderProcessHost* process_host, const GURL& url) OVERRIDE; virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |