Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
WebDriver: timeouts value and cookie expiry should be limited to max …
…safe integer https://bugs.webkit.org/show_bug.cgi?id=182167 Reviewed by Žan Doberšek. This changed recently in the spec, but our implementation was wrong in any case since we were limiting to INT_MAX. Use valueAsNumberInRange() to ensure we get a valid double value in the given range, and then convert to unsigned if it's a valid integer. Fixes: imported/w3c/webdriver/tests/sessions/new_session/create_firstMatch.py::test_valid[timeouts-value10] imported/w3c/webdriver/tests/sessions/new_session/create_alwaysMatch.py::test_valid[timeouts-value10] * Session.h: * WebDriverService.cpp: (WebDriver::valueAsNumberInRange): (WebDriver::unsignedValue): (WebDriver::deserializeTimeouts): (WebDriver::deserializeCookie): Canonical link: https://commits.webkit.org/197989@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
3f365bf
commit da0546e
Showing
3 changed files
with
57 additions
and
33 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