Added TODO.md for ideas to improve

This commit is contained in:
Andrzej Martyna 2025-12-29 09:38:18 +01:00
parent 876cbfd006
commit 1f45c02bf1
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,8 @@
# Items to consider to improve the code
- TabsWalker.GetCurrentTabFromWindow
- Research browsers' settings and check if it may break current assumption of just taking the last tab
- absTracker
- AutomationFocusChangedEventHandler could be replaced with AutomationStructureChangedEventHandler, StructureChangeType.ChildAdded
- Removal of tabs should be handled to save memory by using AutomationStructureChangedEventHandler, StructureChangeType.ChildRemoved

View file

@ -79,7 +79,6 @@ internal class TabsWalker
// Let's take the last one and assume this is the one that was created recently
// This is the best known approach as of today
// There might be some browsers' settings that change this behavior but weren't tested nor considered yet
//TODO: research browsers' settings and check if it may break current assumption of just taking the last tab
return InitiateTab(process, tabs.Last());
}