The web process updates the global modifiers state on every key event received and when the view gets focused.
Pull request: https://github.com/WebKit/WebKit/pull/15625
*** Bug 248144 has been marked as a duplicate of this bug. ***
Committed 266095@main (02196ebd1929): <https://commits.webkit.org/266095@main> Reviewed commits have been landed. Closing PR #15625 and removing active labels.