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

Unified Diff: chrome/browser/resources/history/other_devices.js

Issue 2163893003: Start sending auxclick instead of click for non-primary buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing auxclick polyfill for remote devtools Created 4 years, 4 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/other_devices.js
diff --git a/chrome/browser/resources/history/other_devices.js b/chrome/browser/resources/history/other_devices.js
index cc362b499b7c41b2894b75af7c8d7e19d337f172..6f279ca3a134857f90248c77932c4846db31a34f 100644
--- a/chrome/browser/resources/history/other_devices.js
+++ b/chrome/browser/resources/history/other_devices.js
@@ -292,9 +292,12 @@ Device.prototype.createSessionContents_ = function(maxNumTabs) {
e.preventDefault();
};
};
- a.addEventListener('click', makeClickHandler(sessionTag,
- String(win.sessionId),
- String(tab.sessionId)));
+ ['click', 'auxclick'].forEach(function(eventName) {
+ a.addEventListener(eventName,
+ makeClickHandler(sessionTag,
+ String(win.sessionId),
+ String(tab.sessionId)));
+ });
var wrapper = createElementWithClassName('div', 'device-tab-wrapper');
wrapper.appendChild(a);
contents.appendChild(wrapper);
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/crisper.js » ('j') | chrome/browser/resources/ntp4/nav_dot.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698