[chromedriver] Changed default first tab when Chrome starts
This change assumes that json/list returns chronological order; the first tab is the newest opened. ChromeDriver defaults to use the first tab of type page from json/list; however, this tab could be opened and closed by user, which could cause ChromeDriver failed to connect to the tab. Instead, we will use the last tab. Bug: chromedriver:3690 Change-Id: I813ee6e6802fba122d819fa6232dbf07f2b2cb8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2600237Reviewed-by:John Chen <johnchen@chromium.org> Commit-Queue: Shengfa Lin <shengfa@google.com> Cr-Commit-Position: refs/heads/master@{#838753}
Showing
Please register or sign in to comment