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

Issue 7046065: Allow dev context menu commands on chrome:// URLs. (Closed)

Created:
9 years, 6 months ago by msw
Modified:
9 years, 6 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, Avi (use Gerrit), brettw-cc_chromium.org
Visibility:
Public.

Description

Allow dev context menu commands on chrome:// URLs. Previously, these commands were disabled on about: pages. r88367 unified about: & chrome: and blocked WebUI dev commands. BUG=55771 TEST="Inspect element", etc. available on chrome:// URLs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88498

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -5 lines) Patch
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
msw
PTAL.
9 years, 6 months ago (2011-06-08 23:32:22 UTC) #1
Evan Stade
9 years, 6 months ago (2011-06-08 23:53:37 UTC) #2
lgtm

-- Evan Stade



On Wed, Jun 8, 2011 at 4:32 PM,  <msw@chromium.org> wrote:
> Reviewers: Evan Stade,
>
> Message:
> PTAL.
>
> Description:
> Allow dev context menu commands on chrome:// URLs.
> Previously, these commands were disabled on about: pages.
> r88367 unified about: & chrome: and blocked WebUI dev commands.
>
> BUG=55771
> TEST="Inspect element", etc. available on chrome:// URLs.
>
> Please review this at http://codereview.chromium.org/7046065/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src
>
> Affected files:
>  M chrome/browser/tab_contents/render_view_context_menu.cc
>
>
> Index: chrome/browser/tab_contents/render_view_context_menu.cc
> diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc
> b/chrome/browser/tab_contents/render_view_context_menu.cc
> index
>
71aa90960e0266aabc5e26d8d426dbc4270735df..dee54bfe5d7e5ce43c51ec5c6429060ed1a540da
> 100644
> --- a/chrome/browser/tab_contents/render_view_context_menu.cc
> +++ b/chrome/browser/tab_contents/render_view_context_menu.cc
> @@ -1588,11 +1588,6 @@ bool RenderViewContextMenu::IsDevCommandEnabled(int
> id) const {
>   if (active_entry->IsViewSourceMode())
>     return false;
>
> -  // Do not inspect Chrome URLs (chrome://network/, chrome://memory/,
> etc.).
> -  // However, do inspect about:blank, which is often used by ordinary web
> pages.
> -  if (active_entry->virtual_url().SchemeIs(chrome::kChromeUIScheme))
> -    return false;
> -
>   if (id == IDC_CONTENT_CONTEXT_INSPECTELEMENT) {
>     // Don't enable the web inspector if JavaScript is disabled.
>     if (!profile_->GetPrefs()->GetBoolean(prefs::kWebKitJavascriptEnabled)
> ||
>
>
>

Powered by Google App Engine
This is Rietveld 408576698