I'm using manifest v3 and working on a Safari extension. When I try to run a function within activeTab
. I can not get the proper return from the the function.
For example:
browser.scripting.executeScript({
target:{tabId:tab.id},
func:()=>'test',
}).then(result=>{
console.log('result',result)
})
Here the result
is always null
. Is it a bug?
Nothing wrong with permission settings because if I use files
instead of func
, the return value works properly.
- Safari: Version 16.1 (18614.2.3.1.1)
- macOS 13.0 Beta
- Xcode: Version 14.0 beta 5
Thanks