How do I activate middle-click to close browser tab? How do I configure FF or Chrome to close a tab when I middle click on it?

(I'm in the midst of migrating to OSX from linux)
This was due to using synergy - when I plug my mouse in directly, it works as expected.