Repository navigation
[rb] track the current window in the BiDi bridge so navigation skips the window handle round trip - #18374
Conversation
…the window handle round trip
|
/agentic_describe |
|
/agentic_review |
PR Summary by QodoCache the current window for Ruby BiDi navigation
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
🔗 Related Issues
Builds on #17785 (Ruby navigation over the generated BiDi protocol layer)
💥 What does this PR do?
get,back,forward,refresh) no longer asks the driver for the current window handle before every command; the BiDi bridge keeps it from session start andswitch_to.window.NoSuchWindowError, as in classic.🔧 Implementation Notes
no such framecode, so each navigation method turnsNoSuchFrameErrorinto theNoSuchWindowErrorclassic raises.no such frametoNoSuchWindowErrorfor all BiDi commands (wrong when the missing thing is a realm, which BiDi reports with the same code), and makingNoSuchFrameErrora subclass ofNoSuchWindowError(changes whichrescueclauses catch classic frame errors).BiDiBridgeunit specs; the closed-window case stays an integration spec so the classic run confirms the expected error.🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes