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

refactor: move to flatten protocol #3827

Merged
merged 2 commits into from Jan 22, 2019
Merged

Conversation

aslushnikov
Copy link
Contributor

DevTools protocol is dropping nested targets and switching to
flatten protocol. This patch adopts the new scheme.

Once this change lands, tip-of-tree Puppeteer will be incompatible
with Chromium below 72.0.3606.0. Chromium 72 goes stable on Jan, 29 - the same time we release the
next version of Puppeteer, so this change won't hurt those clients who try using
tip-of-tree Puppeteer with stable chrome.

For the record: the previous attempt to land this was #3524.

DevTools protocol is dropping nested targets and switching to
flatten protocol. This patch adopts the new scheme.
@JoelEinbinder
Copy link
Collaborator

JoelEinbinder commented Jan 22, 2019

I don't think it affects any users, but it's worth noting that the CDPSession public api cannot be used with the flattened protocol at the moment. We only accept method/params in CDPSession.send

lib/Connection.js Outdated Show resolved Hide resolved
lib/Connection.js Outdated Show resolved Hide resolved
@aslushnikov
Copy link
Contributor Author

the CDPSession public api cannot be used with the flattened protocol at the moment.

@JoelEinbinder what does it mean?

@aslushnikov aslushnikov merged commit 89a5c39 into puppeteer:master Jan 22, 2019
@aslushnikov aslushnikov deleted the flatten branch January 22, 2019 23:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants