Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-platform devtools in electron app. #286

Open
jcblw opened this issue Mar 13, 2022 · 2 comments
Open

Cross-platform devtools in electron app. #286

jcblw opened this issue Mar 13, 2022 · 2 comments

Comments

@jcblw
Copy link
Contributor

jcblw commented Mar 13, 2022

It would be nice to be able to put Finch dev tools in an electron app. Right now the dev tools only work for Chrome, but the support library is now starting to support a wide array of different Platforms: Safari, Safari iOS, Firefox, Edge, Opera, and Chrome. It would be extremely beneficial if we were able to support more of those platforms. To do this we need to rethink how the dev tools communicate with the library.

Right now we make an external communication between two extensions, this is an API that is only supported in Chrome. This is largely why the support for the dev tools only works on Chrome. We would need to change this behavior to allow for WS connections to support something like an electron app, and with Safari I think we would need secure web sockets...

We should start evaluating what this looks like, what is the cost, and can we possibly support something like Safari with these devtools?

There might be other solutions to this, just it seems like Safari is the best bet.

@jcblw jcblw changed the title Devtools in electron app. Cross-platform devtools in electron app. Mar 13, 2022
@jcblw
Copy link
Contributor Author

jcblw commented Mar 13, 2022

External messaging is supported by Edge, and Opera too. Firefox and Safari are the ones that does not support the API.

@jcblw
Copy link
Contributor Author

jcblw commented Mar 14, 2022

I am in a web extension slack group and posed the question about this dev tools extension that I am trying to solve here. There are a few suggestions that we should look into as possible solutions that may not require us to go down this rabbit hole of setting up a full electron app.

  • Allow for shared storage via a domain, we can lock this into the Finch GraphQL docs domain
  • Connect the extensions together via webRTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant