-
Notifications
You must be signed in to change notification settings - Fork 32
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
Prototype channel mechanism (script.MessageEvent
)
#319
Conversation
a231e8b
to
a9fa460
Compare
a9fa460
to
0e0d01b
Compare
0e0d01b
to
41636c2
Compare
This PR is the beginning of the #294 |
41636c2
to
706e73f
Compare
706e73f
to
fe8b9b1
Compare
Planning to resume this PR this week. |
a5bf041
to
949083e
Compare
Q: What is the difference between protocol-parser.ts and protocol.ts? Q: Some definitions have both schema + event type with |
As Puppeteer doesn't need
Can you give a specific example? |
e5f18d4
to
8e924fa
Compare
be60d88
to
ac8c148
Compare
Side note: discussed off-line. |
371e49d
to
cfae72a
Compare
cfae72a
to
7a77bd8
Compare
@sadym-chromium I continued the design doc but now I am stuck. More specifically:
|
During deserialization, you should create a binding object on the page side, store it's
It's a CDP term: https://chromedevtools.github.io/devtools-protocol/tot/Runtime/#method-addBinding. In BiDi it will probably called in another way:
Script Evaluator should start long-polling
There is no way to pass argument to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments after 1:1
2bb7736
to
5911dcc
Compare
@sadym-chromium PTAL. I wrote 3 |
bea31a4
to
00e4cc6
Compare
69cb06c
to
83c413a
Compare
Provide a way to communicate from scripts evaluated on the page side to the BiDi client. This is a safe (non-observable by the page script) analog of the `Runtime.addBinding` CDP command. Bug: #294 Co-authored-by: [email protected]
83c413a
to
ffe9a6f
Compare
ffe9a6f
to
0e54f4f
Compare
Provide a way to communicate from scripts evaluated on the page side to
the BiDi client.
This is a safe (non-observable by the page script) analog of the
Runtime.addBinding
CDP command.Prototype the mechanism using long-poll. Implementation details: http://go/webdriver-binding-implementation.
Reference: https://chromedevtools.github.io/devtools-protocol/tot/Runtime/#method-callFunctionOn
Bug: #294
Aligning with spec:
Status
Script.Message
: forked to Align binding (script message and channel) protocol with the spec #541PROTO.binding
to channel to match spec.