3 ms·
Huh. I worked on exactly this idea as a Mozilla intern in 2017. I wrote a collection of Rust crates (mentioned in [0]) comprising auto-generated types for all C
by mintplant 7y ago
Huh. I worked on exactly this idea as a Mozilla intern in 2017. I wrote a collection of Rust crates (mentioned in [0]) comprising auto-generated types for all Chrome DevTools Protocol messages [1], (de)serialization, and a server lib to handle both the initial HTTP handshake and subsequent command execution over WebSockets. I used that to build out an initial CDP server inside Firefox (and Servo) with support for a couple of sample commands.
At the end of the internship I handed over everything I'd built by that point, with the idea that they (Mozilla) would turn it into a finished project. But I never saw any activity on that front after I left, so I assumed the idea'd been scrapped. Feels very weird seeing this pop up out of the blue on HN today.
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1523104#c1 https://bugzilla.mozilla.org/show_bug.cgi?id=1523104#c1
[1] Complete with documentation comment generation; I found the result of running rustdoc over that crate super useful as an alternative to the official CDP docs site: https://www.spinda.net/files/mozilla/rust-cdp/doc/cdp/index.html https://www.spinda.net/files/mozilla/rust-cdp/doc/cdp/index....
- itwy 7y agoAre you saying they didn't credit you for your work?
- mintplant 7y agoI'm not saying that. Just sharing my experience and expressing surprise at the reappearance of what I thought was a dead project.
- kaycebasques 7y agoThere’s a lot of debate between the browser vendors and automation tools around whether the Chrome DevTools Protocol is the right abstraction layer to focus browser automation around. It’s a nuanced topic and if you dig into it you’ll see that all the different sides make good arguments. My guess is that this debate stalled your project. I’m putting myself out here on the topic because having a coherent and enjoyable cross-browser integration testing story would be a huge win for the web at large and it’s something worth making people aware of in the hopes that we can find common ground. Edit: I actually have no right to comment on what stalled your project and have no idea what happened there. I just wanted to discuss the fact that we need a good abstraction layer but seem stuck in debate. Disclosure: Chrome DevTools docs guy, just speaking personally based on my research into the topic over the last year
- mintplant 7y agoNo need to apologize, I appreciate your perspective. That was my assumption as well at the time - that the debate had shifted the other way and CDP support fell off of the priority list.
- ploxiln 7y agoLooks like this integration is being developed primarily by a Google employee, rather than a Mozillian ... so perhaps Mozilla is still not particularly into this idea :)
- mintplant 7y agoThe Firefox end of this is being led up by :ato at Mozilla. https://bugzilla.mozilla.org/show_bug.cgi?id=protocdp https://bugzilla.mozilla.org/show_bug.cgi?id=protocdp