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

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 2340203002: chrome://apps - don't launch apps on right click. Only left or middle. (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/apps_page.js
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
index 8e4772685db18fbe2ad4c7534d67868de49795ae..80fbee21c8c0dcb401f5432b7706f87801b4492e 100644
--- a/chrome/browser/resources/ntp4/apps_page.js
+++ b/chrome/browser/resources/ntp4/apps_page.js
@@ -390,10 +390,12 @@ cr.define('ntp', function() {
/**
* Invoked when an app is clicked.
- * @param {Event} e The click/auxclick event.
+ * @param {MouseEvent} e The click/auxclick event.
* @private
*/
onClick_: function(e) {
+ if (e.button > 1) return;
+
var url = !this.appData_.is_webstore ? '' :
appendParam(this.appData_.url,
'utm_source',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698