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

Issue 6269015: Add facility to fix about: and file: links from chrome:// pages. (Closed)

Created:
9 years, 11 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Add facility to fix about: and file: links from chrome:// pages. Currently, about: links all go to about:blank. This fixes that for left clicks and middle clicks, although context menu navigations (e.g. open in new tab) still won't work. This also "fixes" file: links in the same way. Currently, file links already work as is, but after we make --new-chrome-ui-security-model the default, they will cease to work without this fix. Context menu navigations will, however, continue to work. The fix is currently applied to the history page and one link in settings. BUG=69140 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72401

Patch Set 1 #

Patch Set 2 : git add #

Total comments: 7

Patch Set 3 : more automatic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -21 lines) Patch
M chrome/browser/dom_ui/dom_ui.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/generic_handler.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/generic_handler.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/options/content_settings_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/options/content_settings_handler.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/dom_ui/options/options_ui.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/history.html View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings.js View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/shared/js/util.js View 1 2 1 chunk +28 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Evan Stade
My hope is that this will allow us to land http://codereview.chromium.org/6266017/ , which sets the ...
9 years, 11 months ago (2011-01-21 22:33:29 UTC) #1
abarth-chromium
Looks plausible to me, but I'm not an expert here.
9 years, 11 months ago (2011-01-21 22:48:00 UTC) #2
arv (Not doing code reviews)
I think this approach is a fine workaround. http://codereview.chromium.org/6269015/diff/3001/chrome/browser/dom_ui/generic_handler.cc File chrome/browser/dom_ui/generic_handler.cc (right): http://codereview.chromium.org/6269015/diff/3001/chrome/browser/dom_ui/generic_handler.cc#newcode29 chrome/browser/dom_ui/generic_handler.cc:29: WindowOpenDisposition ...
9 years, 11 months ago (2011-01-21 23:07:32 UTC) #3
Evan Stade
what does the meta key do? http://codereview.chromium.org/6269015/diff/3001/chrome/browser/dom_ui/generic_handler.h File chrome/browser/dom_ui/generic_handler.h (right): http://codereview.chromium.org/6269015/diff/3001/chrome/browser/dom_ui/generic_handler.h#newcode13 chrome/browser/dom_ui/generic_handler.h:13: class GenericHandler : ...
9 years, 11 months ago (2011-01-21 23:41:34 UTC) #4
arv (Not doing code reviews)
On Fri, Jan 21, 2011 at 15:41, <estade@chromium.org> wrote: > what does the meta key ...
9 years, 11 months ago (2011-01-21 23:51:10 UTC) #5
Evan Stade
implemented your suggestion.
9 years, 11 months ago (2011-01-22 01:26:10 UTC) #6
Evan Stade
btw, I didn't implement meta, because all 3 event_utils (e.g., browser/ui/views/event_utils.cc) don't respect the meta ...
9 years, 11 months ago (2011-01-22 01:27:29 UTC) #7
arv (Not doing code reviews)
9 years, 11 months ago (2011-01-24 19:18:07 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698