Bug 327875

Summary: [WebDriver][BiDi] script.callFunction: deserialize arguments in the target realm and resolve SharedReference arguments
Product: WebKit Reporter: Razvan Caliman <rcaliman>
Component: WebDriverAssignee: Razvan Caliman <rcaliman>
Status: NEW    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=323423
https://bugs.webkit.org/show_bug.cgi?id=288057
https://bugs.webkit.org/show_bug.cgi?id=288058
https://bugs.webkit.org/show_bug.cgi?id=288060
Bug Depends on:    
Bug Blocks: 281949    

Razvan Caliman
Reported 2026-10-16 14:08:43 PDT
WebDriver BiDi clients identify DOM nodes by a `script.SharedId`. `script.evaluate` and `script.callFunction` return a node as a `NodeRemoteValue` with a `sharedId`, and the client passes it back as a `script.SharedReference`. That can go to `script.callFunction`, or serve as the element for `input.performActions` origins, `input.setFiles`, `browsingContext.captureScreenshot` clips or `browsingContext.locateNodes`.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-10-16 14:08:52 PDT
Razvan Caliman
Comment 2 2026-10-16 14:55:12 PDT
Note You need to log in before you can comment on or make changes to this bug.