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

Unified Diff: chrome/browser/resources/history.html

Issue 6269015: Add facility to fix about: and file: links from chrome:// pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git add Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/history.html
diff --git a/chrome/browser/resources/history.html b/chrome/browser/resources/history.html
index 851601fe87d183c5191f445d4f9791df4a0d2edc..3199846d56e4221df5c2d2914545f8c9121e0adb 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,9 @@ Page.prototype.getTitleDOM_ = function() {
node.className = 'title';
var link = document.createElement('a');
link.href = this.url_;
+
+ handleFileOrAboutLinkClicks(link);
arv (Not doing code reviews) 2011/01/21 23:07:32 I don't like adding this to every link... more lat
+
link.style.backgroundImage =
'url(chrome://favicon/' + encodeURIForCSS(this.url_) + ')';
link.id = "id-" + this.id_;

Powered by Google App Engine
This is Rietveld 408576698