Reuse `is_tab_pinned` method (#35551)

Release Notes:

- N/A
1b9302d452Joseph T. Lyons committed on 8/3/2025, 7:45:26 PM· committed by GitHubparent4417bfe
1 file changedLine totals unavailable