Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Inspector window goes into an inactive state when extension tab is se…
…lected. https://bugs.webkit.org/show_bug.cgi?id=241652 rdar://91768323 Reviewed by Devin Rousso. * Source/WebInspectorUI/UserInterface/Base/Main.js: (WI.contentLoaded): Update event listeners to use a single _updateWindowInactiveState and listen to visibilitychange. (WI._updateWindowInactiveState): Combined from WI._windowFocused and WI._windowBlurred. Use document.hasFocus() to check for an active window, which works for child frames too. When an iframe is the active element, we will not get any more focus or blur events for the main window, so use a 250ms timeout to keep checking while the iframe is focused. Canonical link: https://commits.webkit.org/251645@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information