Replies: 1 comment
-
I'm also curious to know! Would be a great example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR
I wanted to write a Safari Web Extension (in Go obviously.) Like this Swift example code from Apple. Has anybody done this? How did you write the
main()
for the extension binary?Long Blither
I know how to convert the main Swift application to Go. But it's completely opaque to me how to create the
main()
for the extension process. Xcode tells me when breaking at the entry to theNSExtensionRequestHandling
implementation (in the extension):I guess that I'd have to reverse engineer what's going on in
PluginKit
(frames [24-18]) to setup the XPC service (i.e. register the XPC service so that Safari can find it?) This service is responding to messages from Safari so I'd also have to write / call code to decode the incoming XPC messages (frames [4-2])? I'm questioning the effort-reward ratio here. :-)Beta Was this translation helpful? Give feedback.
All reactions