Hi!
First of all good job making firefox controllable from emacs !
I have been playing around with the code a bit... and it works great! I just got a bit confused that only the first window is accessible when doing things with tabs.
I am at baby level in web technologies, so I am obviously missing some basics. I have a few questions.
Why are you slitting the functionalities in apps that take EmacsRequests? Is it to avoid js injection?
How would one extend Tabs.ts to receive a parameter specifying a windowId? I see that openSearchTab as well as openTab can get a parameter p. So it seems that I can set p to a key-value structure and access them in the function. On the emacs-side it seems calling (spookfox-tabs--request client "SEARCH_FOR" tab) will call openSearchTab with p being tab, right? So it seems pretty straightforward.
Also if I understand right, if I want to add parameters to the functions in Tabs.ts, I'll have to recompile the addon myself. I'll have a look at contributing.org then ;)
For my use case, since I struggle doing any js, when I want to query some data from firefox, it would be nice to have an app that just returns almost all the state of firefox, and process it in emacs. I imagine it being too slow and overkill but maybe there is a nice threshold to find. It could be nice to have anyway for quick experimentation purposes.
Cheers,
Théo
Hi!
First of all good job making firefox controllable from emacs !
I have been playing around with the code a bit... and it works great! I just got a bit confused that only the first window is accessible when doing things with tabs.
I am at baby level in web technologies, so I am obviously missing some basics. I have a few questions.
Why are you slitting the functionalities in apps that take
EmacsRequests? Is it to avoid js injection?How would one extend
Tabs.tsto receive a parameter specifying a windowId? I see thatopenSearchTabas well asopenTabcan get a parameterp. So it seems that I can set p to a key-value structure and access them in the function. On the emacs-side it seems calling(spookfox-tabs--request client "SEARCH_FOR" tab)will callopenSearchTabwith p being tab, right? So it seems pretty straightforward.Also if I understand right, if I want to add parameters to the functions in
Tabs.ts, I'll have to recompile the addon myself. I'll have a look at contributing.org then ;)For my use case, since I struggle doing any js, when I want to query some data from firefox, it would be nice to have an app that just returns almost all the state of firefox, and process it in emacs. I imagine it being too slow and overkill but maybe there is a nice threshold to find. It could be nice to have anyway for quick experimentation purposes.
Cheers,
Théo