gecko could disable window occlusion on Window by the followings - pref widget.windows.window_occlusion_tracking.enabled=false - set environment variable MOZ_WINDOW_OCCLUSION=0 + https://searchfox.org/mozilla-central/rev/77a39e7595198fd30b57550749c15761d30314fb/gfx/thebes/gfxPlatform.cpp#3006 + https://searchfox.org/mozilla-central/rev/77a39e7595198fd30b57550749c15761d30314fb/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/firefox.py#247 chrome seemed to have same problem in the past. https://support.google.com/chrome/thread/83911899/chrome-87-broke-offscreen-automation?hl=en chromium's related bug. chromedriver disables window occlusion on Window. Then it seems better to disable window occlusion by gecko driver. - https://bugs.chromium.org/p/chromedriver/issues/detail?id=3657 - https://bugs.chromium.org/p/chromedriver/issues/detail?id=3641 - https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc;l=105 - https://source.chromium.org/chromium/chromium/src/+/aa109a26304654435e85997e20c992e88c627a7d
Bug 1802473 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
gecko could disable window occlusion on Window by the followings - pref widget.windows.window_occlusion_tracking.enabled=false - set environment variable MOZ_WINDOW_OCCLUSION=0 + https://searchfox.org/mozilla-central/rev/77a39e7595198fd30b57550749c15761d30314fb/gfx/thebes/gfxPlatform.cpp#3006 + https://searchfox.org/mozilla-central/rev/77a39e7595198fd30b57550749c15761d30314fb/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/firefox.py#247 chrome seemed to have same problem in the past. https://support.google.com/chrome/thread/83911899/chrome-87-broke-offscreen-automation?hl=en The followings are chromium's related bugs. chromedriver disables window occlusion on Window. Then it seems better to disable window occlusion by gecko driver. - https://bugs.chromium.org/p/chromedriver/issues/detail?id=3657 - https://bugs.chromium.org/p/chromedriver/issues/detail?id=3641 - https://source.chromium.org/chromium/chromium/src/+/aa109a26304654435e85997e20c992e88c627a7d - https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc;l=105