Skip to content

Missing information on target types and their supported domains #311

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

Open
joffrey-bion opened this issue Apr 10, 2024 · 1 comment
Open

Comments

@joffrey-bion
Copy link

In the formal protocol definitions, we get a list of domains (with details about types, commands, and events).

However, not all targets support all domains, and there is currently no place in the protocol definitions that lists the domains supported by each target type, or the target types support by each domain.

There isn't even a list of the possible target types themselves: the TargetInfo.type description just points to constants defined in Chromium source code, which makes it impossible to parse automatically.

Could this information be added somehow?

@joffrey-bion joffrey-bion changed the title Missing information target types and their supported domains Missing information on target types and their supported domains Apr 10, 2024
@joffrey-bion
Copy link
Author

joffrey-bion commented Feb 6, 2025

Any updates or feedback about this?

This situation is really not ideal for me, as I have to go through Chromium's source code and try to figure out which domains are probably supported by which target types. The process for this is quite tedious. I tried to describe it here:
https://github.com/joffrey-bion/chrome-devtools-kotlin/blob/main/protocol-definition/README.md#manual-updates-of-target-types

I maintain my own best-effort representation of the result in this JSON file:
https://github.com/joffrey-bion/chrome-devtools-kotlin/blob/main/protocol-definition/target_types.json

But it's not very reliable and adds a lot of maintenance toil.

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

No branches or pull requests

1 participant