Connect to correct tab when multiple windows are open in Chrome

When getting the URL from and connecting to the current tab,
query active tabs in the current window.