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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_thumbnail.js

Issue 542033002: [Local NTP] block image-related context menu items for thumbnails; CSS fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 6 years, 3 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
« no previous file with comments | « chrome/browser/resources/local_ntp/most_visited_thumbnail.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/most_visited_thumbnail.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
index 105f85ab1dce17a17f69cc04e9eb7d7bfbd8d118..e18efd604566c2d79d5d7f82e1607765cedcc1bd 100644
--- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
+++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
@@ -45,6 +45,10 @@ window.addEventListener('DOMContentLoaded', function() {
var link = createMostVisitedLink(
params, data.url, data.title, undefined, data.direction,
data.provider);
+ // Use blocker to prevent context menu from showing image-related items.
+ var blocker = document.createElement('span');
+ blocker.className = 'blocker';
+ link.appendChild(blocker);
link.appendChild(image);
displayLink(link);
};
« no previous file with comments | « chrome/browser/resources/local_ntp/most_visited_thumbnail.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698