Fixed a bug where headless cloud sessions forwarded the wrong argument for permission and dialog requests
In the headless cloud client, two functions that forward permission requests and user dialog requests (passPermissionRequest and passUserDialogRequest) were mistakenly passing the same argument twice instead of forwarding the actual request object along with its second argument. This has been fixed so both arguments are now passed correctly and distinctly.
This fixes a bug that likely caused permission and dialog requests in headless cloud sessions to be handled with incorrect or missing data, since the real request object wasn't being forwarded properly.