diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-24 22:21:33 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-24 22:21:33 +0000 |
commit | ceec8304da4387c1c1d2d6abc315433343b81eae (patch) | |
tree | 98cd67417b7f6f28ada850804a10a59e8c5707d9 /chrome/browser/resources/history.html | |
parent | bf37fa80a95e1262f10658e8d9a31be8dcf696fa (diff) | |
download | chromium_src-ceec8304da4387c1c1d2d6abc315433343b81eae.zip chromium_src-ceec8304da4387c1c1d2d6abc315433343b81eae.tar.gz chromium_src-ceec8304da4387c1c1d2d6abc315433343b81eae.tar.bz2 |
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
Review URL: http://codereview.chromium.org/6269015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/history.html')
-rw-r--r-- | chrome/browser/resources/history.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/resources/history.html b/chrome/browser/resources/history.html index 851601f..a6716a6 100644 --- a/chrome/browser/resources/history.html +++ b/chrome/browser/resources/history.html @@ -5,6 +5,7 @@ <title i18n-content="title"></title> <link rel="icon" href="../../app/theme/history_favicon.png"> <script src="shared/js/local_strings.js"></script> +<script src="shared/js/util.js"></script> <script> /////////////////////////////////////////////////////////////////////////////// // Globals: @@ -162,6 +163,7 @@ Page.prototype.getTitleDOM_ = function() { node.className = 'title'; var link = document.createElement('a'); link.href = this.url_; + link.style.backgroundImage = 'url(chrome://favicon/' + encodeURIForCSS(this.url_) + ')'; link.id = "id-" + this.id_; |