Tabs count reported wrong. The tab count widget has tricky async animation code using a cloned widget, and widget isn't guaranteeing to use the current tab count on completion. Changed the code to use the current TabManager tab count when animation completed. I was only able to repro this once, doing rapid tab creation of 10 tabs, then rapid deletion to 2 tabs, and 3 was reported. @diegodoval @alexwykoff
Tabs count reported wrong. The tab count widget has tricky async animation code using a cloned widget, and widget isn't guaranteeing to use the current tab count on completion.
Changed the code to use the current TabManager tab count when animation completed.
I was only able to repro this once, doing rapid tab creation of 10 tabs, then rapid deletion to 2 tabs, and 3 was reported.
@diegodoval @alexwykoff

brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios