Improve tab browsing code, again.
Improve tab browsing code, again.

osmium-org/osmium,wffurr/osmium,wffurr/osmium,osmium-org/osmium,wffurr/osmium,wffurr/osmium,copyliu/osmium,osmium-org/osmium,osmium-org/osmium,copyliu/osmium,copyliu/osmium