[py] Fix default rpId in virtual authenticator#16428
[py] Fix default rpId in virtual authenticator#16428cgoldberg merged 2 commits intoSeleniumHQ:trunkfrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to 8899e13
Previous suggestionsSuggestions up to commit c56ad9a
|
|||||||||||||||||||||||||||
navin772
left a comment
There was a problem hiding this comment.
LGTM! Should we have a test to prevent this in future?
|
the RBE failure seems unrelated. |
User description
🔗 Related Issues
Fixes #16424
💥 What does this PR do?
This PR sets
rp_idto None in theCredentialcreated byCredential.from_dict()if therpIdkey is missing. This was inadvertently changed in #16174, causing a breaking change.🔄 Types of changes
PR Type
Bug fix
Description
Fix
Credential.from_dict()to handle missingrpIdkey gracefullyRestore default
rp_idtoNonewhenrpIdis absent from input dictionaryResolve regression introduced in previous virtual authenticator changes
Diagram Walkthrough
File Walkthrough
virtual_authenticator.py
Use safe dictionary access for rpId fieldpy/selenium/webdriver/common/virtual_authenticator.py
rpIdextraction from direct dictionary access to.get()methodNonewhenrpIdkey is missinguserHandlefield