We currently track the state of the toplevel window from every web view, connecting to the same signals to be notified when something changes. We could add a toplevel window wrapper instead to track its state and notify all the web views when there's any change.
Pull request: https://github.com/WebKit/WebKit/pull/18886
Committed 269136@main (c4614fd4f2f2): <https://commits.webkit.org/269136@main> Reviewed commits have been landed. Closing PR #18886 and removing active labels.