[ChromeDriver] Apply Mobile Emulation in SwitchToWindow
When running in mobile emulation mode, SwitchToWindow will apply mobile emulation mode the the new window or tab. Wrap setup of headless_download_dir in a check that the browser is in headless mode, so that headless_download_dir is only set for headless mode. Add is_headless flag for browser_info to enable simpler checking for headless state. Bug: chromedriver:2126 Change-Id: I2134a824c58f1017ab30f2d034e53b7c6d59a7bd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1774902 Commit-Queue: Tricia Crichton <triciac@chromium.org> Reviewed-by:John Chen <johnchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#691777}
Showing
Please register or sign in to comment