Luigi Semenzato
2018-11-21 21:09:39 UTC
he telemetry code simulates key presses (for instance, for typing
name and password at login prompts) by sending a json dictionary to a
debug socket with "method": "Input.dispatchKeyEvent". It appears that
it would also be possible to do the same thing by injecting some
Javascript that calls document.dispatchEvent(keyboardEvent). I am
wondering if these are exactly equivalent or if there is some benefit
for one vs. the other.
(I am implementing this functionality in Go and I slightly favor the
second choice, mostly because the existing API uses a single devtools
socket.)
Thanks!
name and password at login prompts) by sending a json dictionary to a
debug socket with "method": "Input.dispatchKeyEvent". It appears that
it would also be possible to do the same thing by injecting some
Javascript that calls document.dispatchEvent(keyboardEvent). I am
wondering if these are exactly equivalent or if there is some benefit
for one vs. the other.
(I am implementing this functionality in Go and I slightly favor the
second choice, mostly because the existing API uses a single devtools
socket.)
Thanks!
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAA25o9SKg3P0YGYAHPVPmgu9Jj8ueyBq8F%3DB6m1Bk3F9TrQULQ%40mail.gmail.com.
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAA25o9SKg3P0YGYAHPVPmgu9Jj8ueyBq8F%3DB6m1Bk3F9TrQULQ%40mail.gmail.com.