Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r227290 - [GTK] WebDriver: test imported/w3c/webdriver/tests/se…
…ssions/new_session/response.py is crashing in the bots https://bugs.webkit.org/show_bug.cgi?id=181904 Reviewed by Carlos Alberto Lopez Perez. Source/WebDriver: Handle the case of failing to launch the browser. The test is actually failing because it's sending wrong capabilities, the driver tries to fall back to the default driver, but since WebKit is not installed in the bots, it fails to find the MiniBrowser. The test needs to be fixed, but we shouldn't crash when the browser can't be spawned for whatever reason in any case. This patch handles that case and changes the boolean result of connectToBrowser to be an optional error string instead. This way we can provide more detailed error message when we reject the session creation because the browser failed to start. * SessionHost.h: * WebDriverService.cpp: (WebDriver::WebDriverService::newSession): * glib/SessionHostGlib.cpp: (WebDriver::SessionHost::connectToBrowser): (WebDriver::ConnectToBrowserAsyncData::ConnectToBrowserAsyncData): (WebDriver::SessionHost::launchBrowser): (WebDriver::SessionHost::setupConnection): WebDriverTests: Unskip imported/w3c/webdriver/tests/sessions/new_session/response.py. * TestExpectations.json:
- Loading branch information
1 parent
8296b78
commit f07be2b
Showing
5 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters