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

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: Start sending auxclick instead of click for non-primary buttons Created 4 years, 5 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 c69f68222b0f43dc5ee21f30ce0f62e34d5f7d39..5fc9424e51747a93112e69115acea8fc202b551e 100644
--- a/chrome/browser/resources/history/other_devices.js
+++ b/chrome/browser/resources/history/other_devices.js
@@ -281,9 +281,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);

Powered by Google App Engine
This is Rietveld 408576698