chore: cherry-pick 138b748dd0a4 from chromium #25232
Update FocusChanged notifiers to operate on a copy
Fix this by having these methods iterate over a copy instead of the
(cherry picked from commit d8f526f4e25c24ed29e60b46b3416bfabd5e8f11)
Notes: Security: backported fix for 1107815.