Bug 284738

Summary: [WebDriver][socket] true is set even if the acceptInsecureCerts is false
Product: WebKit Reporter: haruhisa.shin <haruhisa.shin>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

haruhisa.shin
Reported 2024-12-15 23:04:38 PST
There was a mistake in https://commits.webkit.org/287707@main . > if (capabilitiesObject && capabilitiesObject->getBoolean("acceptInsecureCerts"_s)) > capabilities.acceptInsecureCertificates = true; The JSONObject::getBoolean() returns std::optional<bool>, not bool. So the above code would set variable acceptInsecureCertificates to true even if the JSON value is false.
Attachments
haruhisa.shin
Comment 1 2024-12-15 23:36:42 PST
EWS
Comment 2 2024-12-16 03:14:17 PST
Committed 287873@main (6572975a5c6e): <https://commits.webkit.org/287873@main> Reviewed commits have been landed. Closing PR #38002 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-12-16 03:15:15 PST
Note You need to log in before you can comment on or make changes to this bug.