[bidi] mark BiDi types extensible per spec and update Ruby handling - #17853
Conversation
|
Thank you, @titusfortner for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Summary by QodoMark BiDi types extensible per spec and align Ruby extras passthrough
AI Description
Diagram
High-Level Assessment
Files changed (12)
|
Code Review by Qodo
1.
|
…shadow-field guard
|
Code review by qodo was updated up to the latest commit 9dbc23a |
🔗 Related Issues
💥 What does this PR do?
🔧 Implementation Notes
preserveExtras(and itsreSendableTypesreachability walk, plus the now-unusedtypeRefNames/refNameshelpers) from the schema projector. The pre-existingextensibleflag already carries the signal, so bindings key off it directly.extensionsaccessor:Network::Cookie,Session::NewResult::Capabilities,Storage::PartitionKey.extensibleinstead ofpreserveExtras. Regeneratedprotocol/*.rband.rbsoutput is included.record.rb): the undeclared-field warning moved inside the non-extensible branch, andas_jsonrejects an extra whose key matches a declared field's wire key. That check sits at the single merge point coveringnew,with, and in-placeextensionsmutation.🤖 AI assistance
💡 Additional Considerations
Extensionsas the name for the per-type passthrough map; andAdditionalDatafor envelope-level extras (not implemented here)🔄 Types of changes