Hi,
I've been waiting for Chrome 116 to implement a programmatic opening of my sidebar extension (made with React) from my extension's content script.
Now that it's out, I've added an event handler to a <button> in my content script that sends a message to my service worker to open the sidePanel.
However, I continue to get this error:
Error: `sidePanel.open()` may only be called in response to a user gesture.
even though the call is directly in response to a user gesture. I have tried implementing via an onClick event as well as an event listener (again, directly on a <button> element). The error persists. Hoping that someone from Google can weigh on how to make it clear that the function is being called from a user gesture, or alternatively, someone who has successfully implemented could point me in the right direction. Thanks!