[web] Only open tunnelbroker on the active tab
Summary:
ENG-6668 : Only open tunnelbroker on a tab with a lock
Using the previously useWebLock hook, we can open the tunnelbroker connection only on one of the tabs in the foreground.
Depends on D11114
Test Plan:
Switch between different tabs, make sure after a little bit of time (disconnetion of the previous tab and connection of the current tab) the new tabs connects to the tunnelbroker. Make sure that if multiple tabs are visible and in the foreground, only one tab connects to the tunnelbroker.
Because of ENG-6875 I introduced a quickfix to test this diff. I will wait with landing and after the issue is resolved I will re-test it.
Reviewers: kamil, inka, bartek
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D11118