From 46fb94424addb322c7dfad1e8eba462baf0cdcb7 Mon Sep 17 00:00:00 2001 From: "tsepez@chromium.org" Date: Fri, 9 Dec 2011 17:57:47 +0000 Subject: 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 --- content/public/browser/content_browser_client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/public') diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h index 080a403..d987fc0 100644 --- a/content/public/browser/content_browser_client.h +++ b/content/public/browser/content_browser_client.h @@ -133,6 +133,10 @@ class ContentBrowserClient { // SiteInstance. virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0; + // Returns whether a specified URL is handled by the embedder's internal + // protocol handlers. + virtual bool IsHandledURL(const GURL& url) = 0; + // Returns whether a new view for a given |site_url| can be launched in a // given |process_host|. virtual bool IsSuitableHost(content::RenderProcessHost* process_host, -- cgit v1.1